Link to home
Start Free TrialLog in
Avatar of pcorreya
pcorreya

asked on

accessing LDAP directory attributes.

I need to get an attribute from the ldap directory. Is it possible to do this with the @name function in domino 6. What other options do I have.

Regards
Pat
Avatar of qwaletee
qwaletee

Is this from the Domino Directory (which is also an LDAP directory), or is this from a separate LDAP directory.  If it is a separate LDAP directory, is it configured in Directory Assistance for the Directory Server for whatever client is trying to do the LDAP lookup?
Avatar of pcorreya

ASKER

It is Novell's edirectory services. It is configured in the DA.
You want @NameLookup, with the [EXHAUSTIVE] option.
We have an attribute in the edirectory called company name which i want to get hold. Will this command help.
ASKER CERTIFIED SOLUTION
Avatar of qwaletee
qwaletee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry if you think this is off-topic, but so long as you were discussing ways to access LDAP (albeit Novell in your case), here's some code to allow accessing of Active Directory LDAP objects:

Include Reference to "Active DS Type Library" in VB or use "Variant" as variable types in LotusScript

Dim adsDSO As ActiveDS.IADsOpenDSObject   ' Directory Service object reference
Dim adsMembers As ActiveDS.IADsContainer   ' Container object in which user objects are accessed
Dim adsUser As ActiveDS.IADs                       ' User object to be manipulated

' Get a reference to the ADSI object we'll use to talk to LDAP
Set adsDSO = GetObject("LDAP:")

' Authenticate and get a reference to the container object
Set adsMembers = adsDSO.OpenDSObject("LDAP://MYSERVER:483/ou=Members, o=Acme", "UserName", "Password", 0&)

' Get a specific user object within the container
Set adsUser = adsMembers.GetObject("SomeClass", "cn=SomeUserName")