PreviousNext

Input Strings to omX_string_to_object( )

The following are examples of strings that can be handled by the omX_string_to_object( ) function.

Example 1

To create a DS_C_DS_DN object (Root), use strings like the following:

/
/...

Example 2

To create other DS_C_DS_DN objects, use strings like the following:

/c=de/o=sni/ou=ap11/cn=naik,sn=naik
/c=de/o=sni/ou=ap11/85.4.3=naik,sn=naik
/c=de/o=sni/ou=ap11/cn=naik,sn=na\x69k
/c=de/o=sni/ou=ap11/cn=naik,loc=Muenchen\,8000
/c=de/o=sni/ou=ap11/cn=naik,loc='Muenchen,8000'
/ C = de / O = sni / Ou = ap11/CN=naik, SN=naik

Example 3

To create a DS_C_DS_DN object (DCE name), use a string like the following:

/.../c=us/o=osf/ou=abc/subsystems/server/xyz

Example 4

To create a DS_C_DS_RDN object, use strings like the following:

cn=naik,sn=naik
cn=naik,sn=na\x69k
CN = naik, SN = naik

Example 5

To create a DS_C_DS_RDN object (DCE name), use a string like the following:

server

Example 6

To create a DS_C_ATTRIBUTE object (containing, for example, Common-Name), use strings like the following:

cn=bhavesh naik
CN = bhavesh naik
85.4.3=bhavesh nai\x69k

Example 7

To create a DS_C_ATTRIBUTE object (containing an object class with multiple values of Residential-Person and Organizational-Person), use strings like the following:

OCL=REP;ORP
OCL = '\x55\x06\x0a' ; '\x55\x06\x07'

Example 8

To create a DS_C_ATTRIBUTE object (containing a GDS structured attribute like Telex-Number or Owner), use strings like the following:

TXN={TN=12345,CC=678,AB=90}
TXN = { TN = 12345, CC = 678, AB = 90}
own={/c=de/o=sni/ou=ap11};{/c=de/o=sni/ou=ap22}
pa={pa='Wilhelm Riehl Str.85';'Munich'}

Example 9

To create a DSX_C_GDS_ACL object, use a string like the following:

MPUB={INT=0, USR={/c=de/o=sni/cn=naik, sn=bhavesh}}

Example 10

To create a DS_C_PRESENTATION_ADDRESS object, use a string like the following:

TS=Server,NA='TCP/IP!internet=127.0.0.1+port=25015'

Example 11

To create a DS_C_FILTER object, use strings like the following:

c
!c
C = de && CN = 'bha\x76esh naik'
c=de&&cn~=mueller
c = de && (cn = 'a*' || cn = b* || cn = c* )
ACL={MPUB={INT=0,USR={/c=de/o=sni/cn=naik, sn=bhavesh}}}
c = de || cn = *aa*bb*cc*
(cn ~=naik)&&((OCL=ORP)||(OCL=REP))&& !(SN='bhavesh naik')&&(L=*)

Example 12

The following is an example of the error return when an erroneous string is supplied:

/c=de/o=sni,=de

The OM_return_code would be OM_WRONG_VALUE_MAKEUP.

The error_type would be OMX_MISSING_ABBRV.

The error_position would be 13.