summaryrefslogtreecommitdiff
path: root/source4/setup
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-16 10:52:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:33:24 -0500
commit2f195406b6f1ff943eb000741e09cafbdbdaf58e (patch)
tree60ecb30e4a8cf6b05f838441cfa62df9aa952e65 /source4/setup
parent8609e7993237e5ffe54830299212c128e082d9b9 (diff)
downloadsamba-2f195406b6f1ff943eb000741e09cafbdbdaf58e.tar.gz
samba-2f195406b6f1ff943eb000741e09cafbdbdaf58e.tar.bz2
samba-2f195406b6f1ff943eb000741e09cafbdbdaf58e.zip
r9319: updated newuser script for new OO style for nss object
thanks to Hotarut for spotting this (This used to be commit 3f30c6118ba22fbf52068630f48bcde82182b8a6)
Diffstat (limited to 'source4/setup')
-rwxr-xr-xsource4/setup/newuser3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/setup/newuser b/source4/setup/newuser
index 4471e70919..f5015611b9 100755
--- a/source4/setup/newuser
+++ b/source4/setup/newuser
@@ -63,7 +63,8 @@ if (options['unixname'] == undefined) {
options.unixname = options.username;
}
-if (getpwnam(options.unixname) == undefined) {
+var nss = nss_init();
+if (nss.getpwnam(options.unixname) == undefined) {
printf("ERROR: Unix user '%s' does not exist\n", options.unixname);
exit(1);
}