Solved

accessing LDAP directory attributes.

Posted on 2003-12-07
8
872 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
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?
0
 
LVL 1

Author Comment

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

Expert Comment

by:qwaletee
ID: 9895172
You want @NameLookup, with the [EXHAUSTIVE] option.
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 1

Author Comment

by:pcorreya
ID: 9895470
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
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.
0
 
LVL 4

Expert Comment

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

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

808 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