Reading the contents of NDS (Novell Directory Service) with VB

khokhar28
khokhar28 used Ask the Experts™
on
Hi,
can any one give me a tip/Code about accessing NDS with VB. I need to get the User info and so on.
Any help will be appreciated.
Regards
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2006

Commented:
you could try this

title : VB Sample: Read DSI Information from NDS Objects
source : http://developer.novell.com/support/sample/tids/vbdsime/vbdsime.htm

----------
Description

Sample code which shows how to use Novell low level APIs to retrieve DSI information
and to convert NetWare time stamps into VB format

To keep the code simple, only little error handling is implemented


APIs demonstrated
NWDSReadObjectDSIInfo
NWDSGetDSIInfo


Required Modules Source

Netware.txt VB Libraries for NetWare -
VB_Util.bas VB Helper functions - comes with this sample

----------

hope this helps a bit

Commented:
The best is usiln LDAP.

It is LightDirectoryAccessProtocol ans as it name says it can do light things only (you nedd only name so it is light).

You have to know your NDS structure and use simple ADO to query.

Simple example :
Conn.Open "ADs Provider", _
          "cn=Administrator,ou=members,o=microsoft", _
          "secret"

SQLStmt = "SELECT cn " & _
          "FROM 'LDAP://LDAPSERVER:1003/o=microsoft/ou=members' " & _
          "WHERE objectClass='*'"

Set rs = Conn.Execute(SQLStmt)

If it is abig work and you need a lot of info from the NDS then try to search for LDAP on the web.

Commented:
Maybe this tutorial from novell helps you:

http://developer.novell.com/research/appnotes/2000/july/07/a000707.htm

Unfortunatelly the referenced Part 2 doesnt exist.
Should you be charging more for IT Services?

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
Hi all,
sorry I got stuck in some other urgent calls and couldn't try your suggestions. I'll get through with these and come back to you.

Author

Commented:
Hi all, I have got my problem solved from another link in internet which I have forgotten. But if any one is interested in the sample program I downloaded can just ask me and I'll send him the project file.

Regards,
Author of the Year 2009

Commented:
khokhar28, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Refund points and save as a 0-pt PAQ.

DanRollins -- EE database cleanup volunteer
PAQed, with points refunded (250)

SpazMODic
EE Moderator

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial