Myna.Ldap = function( server, username, password )
Contructs a new Ldap connection
| server | REQUIRED Server and initial subtree to connect to. |
ldap://server.yourdomain.com:389/o=top,ou=people
ldaps://server.yourdomain.com:636/o=top,ou=people
| username | Optional default null Fully qualified username to log in as |
cn=name,ou=department,o=ldap_root
| password | Optional default null password for user |
Myna.Ldap.prototype.search=function( searchString, attributes )
Searches an LDAP repository
| searchString | REQUIRED search to perform |
(cn=mporter)
(&(orgcode=01018346)(positioncode=80569))
| attributes | Optional default null a comma separated list of attributes to retrieve from the ldap server. If not specified, all attributes are returned Returns: An array of ldap results that looks like this |
result = (Array)
|
+--[0] = (Object)
|
+-- name = (String) fully qualified name of result node
|
+-- attributes = (Object)
|
+--<attribute name> = (Array)
|
+--[0] = (String)
Contructs a new Ldap connection
Myna.Ldap = function( server, username, password )
Searches an LDAP repository
Myna.Ldap.prototype.search=function( searchString, attributes )