Using ldapsearch to query Callmanager LDAP
From NippAero
Callmanager runs an LDAP called DC Directory. You can bind remotely to the directory and query user and phone information. The defaul LDAP port is 8404 and you must pass a username and password to bind. The default username is Directory Manager and whatever password you installed it with. See the man pages for ldapsearch for mor info on the syntax. The CSA agent on CCM does allow remote query's.
Searching Example
Here is an example search asking for publicjq's cn and telephoneNumber attributes.
linux:/home # ldapsearch -h serverhost -p 8404 -x -D "CN=Directory Manager,O=cisco.com" -W -b "OU=users,O=cisco.com" "cn=publicjq" cn telephoneNumber
Search Result
The result of this query is:
ldap_bind: Success (0)
additional info: Success
# extended LDIF
#
# LDAPv3
# base <OU=users,O=cisco.com> with scope subtree
# filter: cn=publicjq
# requesting: cn telephoneNumber
#
# publicjq, Users, cisco.com
dn: cn=publicjq,ou=Users,o=cisco.com
cn: publicjq
telephoneNumber: 15421
# search result
search: 2
result: 0 Success
text: Success
# numResponses: 2
# numEntries: 1
Kinda related is this example of making a ldap query via javascript and com.
Categories: LDAP | Callmanager | Linux | Javascript
