IonicWind Software

IWBasic => General Questions => Topic started by: acelli on December 01, 2006, 10:49:01 AM

Title: LDAP query
Post by: acelli on December 01, 2006, 10:49:01 AM
Hi,

I was wondering if anyone has used or knows how to use Emergence BASIC to query Active Directory or any other LDAP data store?

I have seen numerous examples in Perl but not many other langugaes.

I see Windows provides "wldap32.dll" but again I don't know anything about it.

If anyone has any information or better yet sample code, I am interested.

Thanks,
Alan Elliott
Title: Re: LDAP query
Post by: ExMember001 on December 01, 2006, 10:51:08 AM
are you talking about external drive, like an mp3 player?
if yes, i'm also searching an answer ;)
Title: Re: LDAP query
Post by: acelli on December 01, 2006, 10:59:31 AM
No I am talking about retrieving or possibly even updating data attributes on an Active Directory account.

Title: Re: LDAP query
Post by: Steven Picard on December 01, 2006, 12:14:08 PM
I've used LDAP (through ADSI) extensively but unfortunately it was through VB which made handling ActiveX and COM much easier.  The master of COM in EBasic was\is Sapero. Perhaps he can be of assistance here? 

The other option is simply to perform your LDAP operations through VBScript.  What specifically did you need to do?
Title: Re: LDAP query
Post by: acelli on March 01, 2007, 08:43:41 PM
Steven,

I need to query Active Directory to find/compare information about users.  This tool does what I want...


http://www.joeware.net/win/free/tools/adfind.htm
(http://www.joeware.net/win/free/tools/adfind.htm)

...but I was hoping to do it inside Ebasic.

If you or anyone has used ASDI with Ebasic to query AD...examples would be appreciated.

Alternatively, I might be able to shell a VBscriot to obtain similar information. 

Examples of attributes I am seeking are;  domain, cn, givenName, sn, memberof, useraccountcontrol, etc...

I may need to write code to determine nested group membership.

Suggestions welcome.

Thanks,
Alan

Title: Re: LDAP query
Post by: Rock Ridge Farm (Larry) on March 02, 2007, 05:58:01 AM
I could use this as well  - looking forward to seeing your progress.