Domino LDAP Queries

Hello Everyone,

I am able to query the Domino LDAP for certain information such as a users Internet Addess, etc…I can also query the users home server. Here are my questions:

  1. When I query the users home server, I get the full Domino name back. CN=servername, O=location. Of course, this info cannot be used in DNS. Can this info be parsed to just the servername?

  2. If not, is there another way to return just the IP of the users home server? I tried using ServerName$IP but that does not seem to work.

Thank you everyone for your help!

Subject: Domino LDAP Queries

I am able to query the Domino LDAP for certain information such as a users Internet Addess, etc…I can also query the users home server. Here are my questions:

  1. When I query the users home server, I get the full Domino name back. CN=servername, O=location. Of course, this info cannot be used in DNS. Can this info be parsed to just the servername?

  2. If not, is there another way to return just the IP of the users home server? I tried using ServerName$IP but that does not seem to work.

Now that you know the name of the server is “cn=servername,o=location”, find its server doc’s NetAddresses attribute values. By default, LDAP anonymous users cannot retrieve NetAddresses values, so you probably want to authenticate

ldapsearch -h hostname -D binddn -w password -b “cn=servername,o=location” “(objectclass=dominoserver)” netaddresses

Subject: RE: Domino LDAP Queries

Thanks Ken but this will not work for me…

The 3rd party LDAP service needs to find the users home server in one shot.

For example, lookup mail server for user Jane Dow returns CN=servername, O=location, it then takes this info and runs it in DNS…DNS does not understand this host. There is no way to further analyze or query returned data so I will need to get the IP of the home server instead of the full Domino name (or at least just the servername without the CN=)…

Thanks for your help!!!

Lilly