Solved

accessing LDAP directory attributes.

Posted on 2003-12-07
8
868 Views
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.

Regards
Pat
0
Comment
Question by:pcorreya
  • 3
  • 2
8 Comments
 
LVL 31

Expert Comment

by:qwaletee
Comment Utility
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?
0
 
LVL 1

Author Comment

by:pcorreya
Comment Utility
It is Novell's edirectory services. It is configured in the DA.
0
 
LVL 31

Expert Comment

by:qwaletee
Comment Utility
You want @NameLookup, with the [EXHAUSTIVE] option.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Author Comment

by:pcorreya
Comment Utility
We have an attribute in the edirectory called company name which i want to get hold. Will this command help.
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 250 total points
Comment Utility
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.
0
 
LVL 4

Expert Comment

by:bhartung
Comment Utility
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")
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now