Re: Add AD user to ADAM-group
- From: pez <pez@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 2 Jun 2005 09:48:03 -0700
Ok. So i need to bind to the ad account, get the sid of that object, and at
last. Add the account as i normally would in adam, only using the ldap with
the sid-form instead?
"Lee Flight" wrote:
> Hi
>
> you need the SID of the AD user in either of the two SID string forms given
> in the MSDN link below. So if you are starting with an AD user name you
> will need to bind to that object in AD and retrieve the SID, if you google
> you might find some VBScript functions that will format the SID in the form
> you need.
>
> Lee Flight
>
>
> "pez" <pez@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:1B77A8E9-DB87-4E6E-9C54-47E119D09CA4@xxxxxxxxxxxxxxxx
> > How do I get this part(SID) right?
> >
> > memberPath ="LDAP://<SID=S-1-5-21-xxxxxx-yyyyy-zzzz>"
> >
> > Big thank you for your help
> >
> >
> > "Lee Flight" wrote:
> >
> >> Hi
> >>
> >> as the AD user is a Foreign Security Principal in ADAM you will
> >> need to add the AD user as a member in SID binding format:
> >>
> >> http://msdn.microsoft.com/library/en-us/adsi/adsi/iadsgroup_add.asp
> >>
> >> and that should create the required FSP if it does not exist already:
> >>
> >> groupPath = "LDAP://localhost:389/CN=Mygrp,OU=Groups,DC=Mydom,DC=com"
> >> memberPath ="LDAP://<SID=S-1-5-21-xxxxxx-yyyyy-zzzz>"
> >> Set objGroup = GetObject(groupPath)
> >> objGroup.Add(memberPath)
> >>
> >>
> >> Lee Flight
> >>
> >> "pez" <pez@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> >> news:97FC624B-57FF-496D-96EC-300A39CA97D1@xxxxxxxxxxxxxxxx
> >> > I'm trying to add an AD user to an ADAM group with vbscript but I can't
> >> > get
> >> > it to work. Anybody got an example of this?
> >> >
> >> > Thanks
> >>
> >>
> >>
>
>
>
.
- Follow-Ups:
- Re: Add AD user to ADAM-group
- From: Lee Flight
- Re: Add AD user to ADAM-group
- References:
- Add AD user to ADAM-group
- From: pez
- Re: Add AD user to ADAM-group
- From: Lee Flight
- Re: Add AD user to ADAM-group
- From: pez
- Re: Add AD user to ADAM-group
- From: Lee Flight
- Add AD user to ADAM-group
- Prev by Date: RE: Lost DNS zones in AD
- Next by Date: Re: It takes long time to log in after moving home dir
- Previous by thread: Re: Add AD user to ADAM-group
- Next by thread: Re: Add AD user to ADAM-group
- Index(es):
Relevant Pages
|