Windows script host – Microsoft exchange server

Asked By 0 points N/A Posted on -
qa-featured

Hi fellows,

I am trying to find an LDAP query that tells me which users passwordsare going to expire(within 3-4 days) in a particular group. If I change the sGroup (Line 32) to CN=Users or anything I get a check your group pop up.  I don't see how to bind to the LDAP even though I am signed in as the administrator.  If I use LDP I have to bind to get it to show my AD. I writing this code using VBA and I don’t understand what could be the problem.

Windows Script Host

Check your group name or its member list

I do not know much about Microsoft exchange server mainly because, I normally handle programming in other applications not related to Microsoft exchange server.  If need be, I will provide a set of the code and my set up in case am just too dumb to figure out the problem. I have checked on the internet and unfortunately the only information I get is related to programming and not anything to do with server.  If any programmer out there has an idea on how to go about this I will appreciate.

  Thank you.

SHARE
Answered By 0 points N/A #80548

Windows script host – Microsoft exchange server

qa-featured

hi,

            The LDAP, know as light weight Directory Access Protocol. LDAP Will play the wide roll in the Active directory and Ms Exchange.

You can bind to Active Directory objects in VBScript with a "Set" statement, using the GetObject method.

GetObject requires a "binding string", which is a text string that uniquely specifies the object in Active Directory.

Below are examples of statements that bind to objects with the LDAP provider. The binding string is the string in quotes.

Set objUser = GetObject("LDAP://cn=Joe Smith,ou=East,dc=MyDomain,dc=com")
Set objComputer = GetObject("LDAP://cn=Test2,cn=Users,dc=MyDomain,dc=com")
Set objGroup = GetObject("LDAP://cn=Engr,ou=East,dc=MyDomain,dc=net")
Set objOU = GetObject("LDAP://ou=Sales,ou=East,dc=MyDomain,dc=MyFirm,dc=com")

where:

LDAP:

The provider (case sensitive)

objUser, objComputer, objGroup, objOU

Variable referring to the object

cn=Joe Smith,ou=East,dc=MyDomain,dc=net

Distinguished Name of user "Joe Smith"

cn=Joe Smith

Relative Distinguished Name of user "Joe Smith"

dc=MyDomain,dc=com

DNS domain name (MyDomain.com)

cn=Users

Relative Distinguished Name of container "Users"

ou=East

Organizational Unit where user "Joe Smith" resides

cn

Common Name

ou

Organizational Unit

dc

Domain Component

Login/Register to Answer

Related Questions