N/APosted on - 07/01/2011
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.
Windows script host – Microsoft exchange server
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")
The provider (case sensitive)
objUser, objComputer, objGroup, objOU
Variable referring to the object
Distinguished Name of user "Joe Smith"
Relative Distinguished Name of user "Joe Smith"
DNS domain name (MyDomain.com)
Relative Distinguished Name of container "Users"
Organizational Unit where user "Joe Smith" resides