git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a10747
)
r9319: updated newuser script for new OO style for nss object
author
Andrew Tridgell
<tridge@samba.org>
Tue, 16 Aug 2005 10:52:02 +0000
(10:52 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:33:24 +0000
(13:33 -0500)
thanks to Hotarut for spotting this
source/setup/newuser
patch
|
blob
|
history
diff --git
a/source/setup/newuser
b/source/setup/newuser
index 4471e70919a84c14785acdf9265aa70e3b513b2e..f5015611b960e39b2e65eb79ccb42900ad8a950a 100755
(executable)
--- a/
source/setup/newuser
+++ b/
source/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);
}