Re: Synch ADA and ADS Schema
From: Lee Flight (lef_at_le.ac.uk-nospam)
Date: 09/29/04
- Next message: mrboomi: "JNDI + LDAP + Active Directory + ObjectChangeListener"
- Previous message: Mike Brannigan [MSFT]: "Re: win2k3 DC in win2k mixed-mode domain"
- In reply to: Vinay Joseph Mathew: "Synch ADA and ADS Schema"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 29 Sep 2004 10:34:14 +0100
ADAM users and Windows users are different animals.I would
recommend having a look at the Step by Step Reviewers Guide
that comes with the ADAM install to understand the options.
The MS-User.ldf schema extension does not contain all the
Windows user attributes e.g. sAMAccountName because
it is not a Windows User object, you can add attributes but that
will require you to make the corresponding schema extensions
yourself. Likewise ADAM user account control options are
handled differently.
As for setting the password of an ADAM user please see the
MSDN sample:
http://msdn.microsoft.com/library/en-us/adam/adam/setting_a_user_password.asp
and review the ADSI and AD newsgroups via Google for setting
password issues in ADAM.
Good Luck
Lee Flight
"Vinay Joseph Mathew" <vinayjoseph@yahoo.com> wrote in message
news:OwblewZpEHA.132@TK2MSFTNGP14.phx.gbl...
> 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: mrboomi: "JNDI + LDAP + Active Directory + ObjectChangeListener"
- Previous message: Mike Brannigan [MSFT]: "Re: win2k3 DC in win2k mixed-mode domain"
- In reply to: Vinay Joseph Mathew: "Synch ADA and ADS Schema"
- Messages sorted by: [ date ] [ thread ]