Does anyone know if there is a method to use Ldapsearch to return Internet addresses only (i.e., no additional fully-qualified name information, etc.).
Thanks,
Charlie
Does anyone know if there is a method to use Ldapsearch to return Internet addresses only (i.e., no additional fully-qualified name information, etc.).
Thanks,
Charlie
Subject: Ldapsearch to return Internet Address Only
Does anyone know if there is a method to use Ldapsearch to return Internet addresses only (i.e., no additional fully-qualified name information, etc.).
If you mean retrieve the contents of the InternetAddress field, specify “InternetAddress” as the attribute you want returned …
ldapsearch -h hostname -L “(objectclass=dominoperson)” internetaddress
If you want to remove the names of the returned objects, use your favorite scripting language (e.g., perl) to delete lines beginning with “dn:” (the -L switch returns the results in RFC 2849 (LDAP URL) format which adds the “dn:”)
Subject: RE: Ldapsearch to return Internet Address Only
Thanks Ken,
I actually built a WinBatch script which “tweaks” the LDAP file as needed.
Charlie