Page 1 of 1 1
Topic Options
#144785 - 2005-08-04 09:19 AM Creat a new group
Polynorm Offline
Lurker

Registered: 2005-08-03
Posts: 1
I have a problem with create a new group in the ADS.
Code:
  
$GroupOU = GetObject ("LDAP://OU=xx,OU=xx,OU=xx,OU=xx,OU=xx,DC=xx,DC=xx,DC=xx")
$Group = $GroupOU.Create("group","cn=" + $Gruppenname)
$Group.Put("SamAccountName",$Gruppenname)
$Group.SetInfo



the problem is I can't use the group to set right with cacels.
After 2 minutes I can use it.
What can I do to use it immediately ?

Top
#144786 - 2005-08-04 10:59 PM Re: Creat a new group
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
The problem you are probably running into is that the create group is happening on a different DC from which the resource is using when you attempt to use the new group.

You could add the DC server name to the LDAP string so that the create occurs on the specific DC that the resource server uses for the group reference.


$GroupOU = GetObject ("LDAP://DCname/OU=xx,OU=xx,OU=xx,OU=xx,OU=xx,DC=xx,DC=xx,DC=xx")


Edited by Howard Bullock (2005-08-04 11:00 PM)
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 931 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.049 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org