The LDAP driver implements directory services for use with an LDAP server.
interfaces File | Directory Services |
---|---|
Platform-specific | Platform-independent |
Specific to each SAP installation | Centralized and hierarchical |
Contains separate master and query entries | One entry for each server that is accessed by both clients and servers |
Cannot store metadata about the server | Stores metadata about the server |
LDAP directory services support more attributes than the SAP interfaces file. These attributes can include server version, server status, and so on.
The traditional interfaces file with TCP connection and a failover machine looks like:
master tcp ether huey 5000 query tcp ether huey 5000 hafailover secondary
dn: sybaseServername=foobar, dc=sybase,dc=com objectClass: sybaseServer sybaseVersion: 1500 sybaseServername: foobar sybaseService: ASE sybaseStatus: 4 sybaseAddress: TCP#1#foobar 5000 sybaseRetryCount: 12 sybaseRetryDelay: 30 sybaseHAServernam: secondary
All entries in the LDAP directory service are called entities. Each entity has a distinguished name (DN) and is stored in a hierarchical tree structure based on its DN. This tree is call the directory information tree (DIT). Client applications use a DIT base to specify where entities are stored.
In the example above, the entry describes an SAP ASE named “foobar” listening on a TCP connection with a port number of 5000. This entity also specifies a retry count of 12 (times) and a retry delay of 30 (seconds). Once a client has found an address where a server responds, the login dialog between the client and the server begins.
You can find a complete list of the SAP LDAP directory schema in UNIX in a file called sybase.schema in the directory $SYBASE/$SYBASE_OCS/config.In the same directory, there is also a file called sybase-schema.conf, which contains the same schema, but uses a Netscape-specific syntax.
Since LDAP supports multiple entries for each attribute, each address attribute must contain the address of a single server, including protocol, access type, and address.
For example, this is an LDAP entry for an Windows server listening on two addresses, with different connection protocols:
sybaseAddress = TCP#1#TOEJAM 4444 sybaseAddress = NAMEPIPE#1#\pipe\sybase\query
You can edit these entries with dsedit.
To ensure cross-platform compatibility for all SAP products, the protocol and address attribute fields should be in a platform- and product-independent format.