accessing LDAP directory attributes.

Posted on 2003-12-07
Last Modified: 2013-12-18
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.

Question by:pcorreya
  • 3
  • 2
LVL 31

Expert Comment

ID: 9894599
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?

Author Comment

ID: 9894778
It is Novell's edirectory services. It is configured in the DA.
LVL 31

Expert Comment

ID: 9895172
You want @NameLookup, with the [EXHAUSTIVE] option.
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.


Author Comment

ID: 9895470
We have an attribute in the edirectory called company name which i want to get hold. Will this command help.
LVL 31

Accepted Solution

qwaletee earned 250 total points
ID: 9896944
I believe it can, but I have not tried it. @NameLookup takes as its latter parameter the name of the ite you want to retrieve.  If it is a Notes directory, you give the field Item) name.  If it is LDAP, I would imagine you pass the attribute name, which is the LDAP equivalent.  Not sure how LDAP schemas come into play for this.  Easy enough to try!

You might want to expirment first with better-known attributes that more or less HAVE to be there.

Expert Comment

ID: 9914138
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")

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Mobile Iron iphone stop receiving new mails 6 1,376
Lotus notes email code 13 95
External emails not coming through 3 111
Counting documents in a Domino View 3 98
For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question