Displaying 1 result from an estimated 1 matches for "updateidpool".
2005 May 31
0
Access denied error when trying to join XP to Samba Domain
...lUid()
{
my ($search, $modify, $searchbase, $filter);
$searchbase = "dc=dcscorp,dc=net"." '(objectClass=idPool)'";
$filter = "filter nextUid";
$search = `$LDAPSEARCH -LLL -x -b $searchbase $filter | grep nextUid |
cut -d ':' -f2`;
chomp ($search);
UpdateIDPool ($search);
return $search;
}
sub UpdateIDPool
{
my ($uidnum) = @_;
$uidnum++;
my $entry = "dn: cn=Pool,dc=dcscorp,dc=net
replace: nextUid
nextUid: $uidnum";
open (FH, '>', 'updateidpool.ldif');
print FH $entry;
my $cmd = `$LDAPMODIFY -D $ADMINDN -w $ADMINP...