Using directory services

To use directory services, add the following properties to the ConnectString:�

DSURL= ldap://SYBLDAP:389/dc=sybase,dc=com??one?sybase
Servername=MANGO

The URL is an LDAP URL and uses LDAP libraries to resolve the URL.

To support high availability on the LDAP server, the DSURL accepts multiple URLs. Separate each URL with a semicolon. For example:

DSURL={ldap://SYBLDAP:389/dc=sybase,dc=com??one?sybaseServername=MANGO;
ldap://SYBLDAP1:389/dc=sybase,dc=com??one?sybaseServername=MANGO}

�An example of DSURL follows:

ldap://hostport/dn[?attrs[?scope[?filter[?userdn?userpass]]]]

Where:

hostport is a host name with an optional portnumber, for example: SYBLDAP1:389

dn is the search base, for example: dc=sybase,dc-com

attrs is a comma-separated list of attributes requested from the LDAP server. You must leave it blank. Data Provider requires all attributes.

scope is one of three strings:

filter is the search filter. Generally, is the sybaseServername. You can leave it blank and set the Data Source or Server Name property in the ConnectionString.

userdn is the user's distinguished name (dn). If the LDAP server does not support anonymous login you can set the user's dn here or else you can set the DSPrincipal property in the ConnectionString.

userpass is the password. If the LDAP server does not support anonymous login you can set the password here or you can set the DSPassword property in the ConnectionString.

The URL may contain sybaseServername or you can set the property "Server Name" to the service name of the LDAP Sybase server object.

The following properties are useful when using Directory Services: