LDAP with shortnames

Hi,

Is there anyway of doing a LDAP query to the short name field within a person document?

We are running Clearswift for SMTP which forwards mail to Domino, but we would like it to delete mail if the user in not in an LDAP address list.

This works ok for users with “internet address” filled out in the person document, but if the user has an alias “bob@bob.com” in the short name field. Then the mail will not be delivered.

The current query is (objectclass=dominoperson)

Thanks for your help

Neil

Subject: LDAP with shortnames

Is there anyway of doing a LDAP query to the short name field within a person document?

We are running Clearswift for SMTP which forwards mail to Domino, but we would like it to delete mail if the user in not in an LDAP address list.

This works ok for users with “internet address” filled out in the person document, but if the user has an alias “bob@bob.com” in the short name field. Then the mail will not be delivered.

The current query is (objectclass=dominoperson)

The corresponding LDAP attribute is uid. How does one know this? Use your Notes client to open Schema.nsf on your Domino server that’s running the LDAP server.

Your search filter should therefore be “(&(objectclass=dominoperson)(uid=bob@bob.com))”.

How does one know to look in Schema.nsf? Look at the ND6 Directory FAQ, which will point you to the Admin Guide. There’s mention of seemingly odd handling of attributes like “mail”.
http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllThreadedweb/5c4bf25f844b9ac785256e4c005998b7?OpenDocument

How does one easily find this FAQ? Why googling “lotus directory faq” of course J
http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=lotus+directory+faq

Subject: LDAP with shortnames

LDAP Attribute OIDuid

maps to Notes field

ShortName

This is the field you’ll need to tell Clearswift to check.