Author: tridge
Date: 2005-08-16 10:52:02 +0000 (Tue, 16 Aug 2005)
New Revision: 9319

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9319

Log:
updated newuser script for new OO style for nss object

thanks to Hotarut for spotting this

Modified:
   branches/SAMBA_4_0/source/setup/newuser


Changeset:
Modified: branches/SAMBA_4_0/source/setup/newuser
===================================================================
--- branches/SAMBA_4_0/source/setup/newuser     2005-08-16 06:55:40 UTC (rev 
9318)
+++ branches/SAMBA_4_0/source/setup/newuser     2005-08-16 10:52:02 UTC (rev 
9319)
@@ -63,7 +63,8 @@
        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);
 }

Reply via email to