Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Bind to server instead of AD

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,56574
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Bind to server instead of AD
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Bind to server instead of AD - 2/11/2008 10:33:18 AM   
  jrcochranusa


Posts: 27
Score: 0
Joined: 1/30/2007
Status: offline
I want to add a user to a global group, but on a specific domain controller. Is this possible?

If so, how would I change the code below?

Const ADS_PROPERTY_APPEND = 3
On Error Resume Next
 
Set objGroup = GetObject ("LDAP://cn=schema admins,ou=svcact,dc=mydomian,dc=com")

objGroup.PutEx ADS_PROPERTY_APPEND, _
   "member", Array("cn=admintestHIDS,ou=svcact,dc=mydomain,dc=com")

objGroup.SetInfo

_____________________________

Thanks,

jrc
 
 
Post #: 1
 
 RE: Bind to server instead of AD - 2/11/2008 11:14:31 AM   
  dm_4ever


Posts: 2641
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Yes you can bind to a specific domain controller...


LDAP://servername/cn=xxxx,ou=xxxxx

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to jrcochranusa)
 
 
Post #: 2
 
 RE: Bind to server instead of AD - 2/12/2008 7:59:31 AM   
  jrcochranusa


Posts: 27
Score: 0
Joined: 1/30/2007
Status: offline
Shmanks... works.

_____________________________

Thanks,

jrc

(in reply to dm_4ever)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Bind to server instead of AD Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts