diff options
Diffstat (limited to 'source4/setup')
-rwxr-xr-x | source4/setup/newuser | 3 |
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); } |