Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Configuration Manager - Directory Server Connection 2

Status
Not open for further replies.

collierd

MIS
Dec 19, 2001
509
DE
Hello

Can this be automated rather than having to run access manager config wizard every time to point to a different server

Thanks

Damian.
 
Here you go. Don't forget to take out the line breaks.

Sub Main()

Dim objAutoConfigApp as Object
Dim objDSConfig as Object

Set objAutoConfigApp = CreateObject ("AutoConfiguration.Application")

Set objDSConfig = objAutoConfigApp.DSConfigurations.Add("HumanResources", 389, "o=Cognos, c=CA", 0)

Set objAutoConfigApp = Nothing
Set objDSConfig = Nothing

End Sub
 
Thanks

Where do I put the server name into this routine
 
ok, got it

replace "Human Resources" with the server name and "o=Cognos ..." with the base DN org and country


Thanks

Damian.
 
Sorry about that, I forgot to replace the servername. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top