RetiredInVero
New member
- Local time
- Today, 15:46
- Joined
- Jan 29, 2016
- Messages
- 3
I am trying to write a procedure to update LDAP user attributes from within a little Access database/application. Below is all the pertinent information. Hopefully someone can help. TIA
---------------------
Microsoft Visual Basic being used from within Access 2010.
Microsoft Visual Basic for Applications 7.0, Version 1637
Running MS Windows 7 Professional 64 bit, SP 1
I am trying to update the user account attributes by using objUser.Put commands.
The user executing this code has full read/write permissions to AD and is a domain administrator with full rights. The user can manually add, delete and modify objects (users, etc.) in AD using the MS AD tools. We are trying to automate this process.
The account that is being used for this test definitely exits. It was created specifically for this testing.
This code opens the object with no error
Set objUser = GetObject("LDAP://OU=USERS,DC=CompanyName,DC=org")
When adding a specific user an error is generated
Set objUser = GetObject("LDAP://sAMAccountName=mis.test,DC=CompanyName,DC=org")
Error message: Run-time error '-2147016656(80072030)': Automation error There is no such object on the server.
This message is wrong. The account that is being used for this test definitely exits. It was created specifically for this testing.
I have tried various combinations and permuttations of using OU, no OU, etc. with no luck.
Any help would be appreciated.
---------------------
Microsoft Visual Basic being used from within Access 2010.
Microsoft Visual Basic for Applications 7.0, Version 1637
Running MS Windows 7 Professional 64 bit, SP 1
I am trying to update the user account attributes by using objUser.Put commands.
The user executing this code has full read/write permissions to AD and is a domain administrator with full rights. The user can manually add, delete and modify objects (users, etc.) in AD using the MS AD tools. We are trying to automate this process.
The account that is being used for this test definitely exits. It was created specifically for this testing.
This code opens the object with no error
Set objUser = GetObject("LDAP://OU=USERS,DC=CompanyName,DC=org")
When adding a specific user an error is generated
Set objUser = GetObject("LDAP://sAMAccountName=mis.test,DC=CompanyName,DC=org")
Error message: Run-time error '-2147016656(80072030)': Automation error There is no such object on the server.
This message is wrong. The account that is being used for this test definitely exits. It was created specifically for this testing.
I have tried various combinations and permuttations of using OU, no OU, etc. with no luck.
Any help would be appreciated.