Synch ADA and ADS Schema
From: Vinay Joseph Mathew (vinayjoseph_at_yahoo.com)
Date: 09/28/04
- Next message: Running Man: "AD problem with Microsoft Access"
- Previous message: Phillip Renouf: "RE: How to Add Users from Trusted Domain in a Different to a Univ"
- Next in thread: Al Mulnick: "Re: Synch ADA and ADS Schema"
- Reply: Al Mulnick: "Re: Synch ADA and ADS Schema"
- Reply: Lee Flight: "Re: Synch ADA and ADS Schema"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 28 Sep 2004 16:45:39 -0400
Hi All,
I need an urgent way to synchronize the ADAM schema with the Win2K AD
schema. How do I add attributes like sAMAccountName to ADAM. The code from
W2k is below. The code fails on a lot of places like sAMAccountName,
setpassword etc...
Any help is higly appreciated.
Regards,
Vinay
Set l_objAdsContainer = GetObject(sAdsPath)
Set l_user = l_objAdsContainer.Create("user", "cn=" & sAccountID)
l_user.Put "samAccountName", sAccountID
l_user.SetInfo
l_user.Put "DisplayName", sAccountID
l_user.SetInfo
l_user.SetPassword "pswd"
l_user.SetInfo
l_user.Put "AccountExpires", 0
l_user.Put "pwdlastset", CLng(-1)
l_lnewflag = ADS_UF_DONT_EXPIRE_PASSWD
l_user.Put "userAccountControl", l_lnewflag
l_user.SetInfo
- Next message: Running Man: "AD problem with Microsoft Access"
- Previous message: Phillip Renouf: "RE: How to Add Users from Trusted Domain in a Different to a Univ"
- Next in thread: Al Mulnick: "Re: Synch ADA and ADS Schema"
- Reply: Al Mulnick: "Re: Synch ADA and ADS Schema"
- Reply: Lee Flight: "Re: Synch ADA and ADS Schema"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|