diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-04-30 12:30:36 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:24 -0500 |
commit | 13d31a48713e7542a6317448f4b6cc16810346ad (patch) | |
tree | 006f81f11c76acc3e8500aa9ad43e7a067223641 /source4 | |
parent | 3f4093de8a5ca656cd184bdd6d2dd3e9d148d069 (diff) | |
download | samba-13d31a48713e7542a6317448f4b6cc16810346ad.tar.gz samba-13d31a48713e7542a6317448f4b6cc16810346ad.tar.xz samba-13d31a48713e7542a6317448f4b6cc16810346ad.zip |
r6534: Patch from lieschen to fix our vital user creation tools :-)
Andrew Bartlett
(This used to be commit 1a1f0bd33c8e9ad89df0073aa9c2e42822ec7903)
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/setup/newuser.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/setup/newuser.pl b/source4/setup/newuser.pl index 6ddda5028e..a38067219e 100755 --- a/source4/setup/newuser.pl +++ b/source4/setup/newuser.pl @@ -40,7 +40,7 @@ sub search($$) { my $expr = shift; my $attrib = shift; - my $res = `ldbsearch \"$expr\" $attrib | grep ^$attrib | cut -d' ' -f2- | head -1`; + my $res = `ldbsearch -H $opt_samdb \"$expr\" $attrib | grep ^$attrib | cut -d' ' -f2- | head -1`; chomp $res; return $res; } @@ -96,7 +96,7 @@ $ENV{"LDB_URL"} = $opt_samdb; my $domain_sid = search("(objectClass=domainDNS)", "objectSid"); my $domain_dn = search("(objectClass=domainDNS)", "dn"); -my $ldif = `ldbsearch 'cn=TemplateUser' | grep -v Template | grep -v '^#'`; +my $ldif = `ldbsearch -H $opt_samdb 'cn=TemplateUser' | grep -v Template | grep -v '^#'`; chomp $ldif; my $sid; |