Changeset 3187b26 for npl/fileserver/smb-ldap-tool/modified/smbldap-usermod
- Timestamp:
- 03/12/18 14:22:15 (7 years ago)
- Branches:
- master, perl-5.22
- Children:
- fdfd619
- Parents:
- 1051986
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/fileserver/smb-ldap-tool/modified/smbldap-usermod
r1051986 r3187b26 113 113 my $valpwdcanchange = 0; 114 114 my $valpwdmustchange = $winmagic; 115 my $valpwdlastset = 0; 115 my $valpwdlastset = 0; 116 116 my $valacctflags = "[UX]"; 117 117 my $user_entry=read_user_entry($user); … … 143 143 if (defined($Options{'o'})) { 144 144 $nscd_status = system "/etc/init.d/nscd status >/dev/null 2>&1"; 145 145 146 146 if ($nscd_status == 0) { 147 147 system "/etc/init.d/nscd stop > /dev/null 2>&1"; … … 152 152 system "/etc/init.d/nscd start > /dev/null 2>&1"; 153 153 } 154 system "nscd -i passwd; nscd -i group"; 154 155 155 156 print "$0: uid number $tmp exists\n"; … … 219 220 } 220 221 221 if (defined($tmp = $Options{'N'})) { 222 if (defined($tmp = $Options{'N'})) { 222 223 push(@mods, 'cn' => $tmp); 223 224 } … … 227 228 push(@mods, 'givenName' => $tmp); 228 229 } 229 230 if (defined($tmp = $Options{'S'})) { 230 231 if (defined($tmp = $Options{'S'})) { 231 232 push(@mods, 'sn' => $tmp); 232 233 } … … 580 581 system "/etc/init.d/nscd restart > /dev/null 2>&1"; 581 582 } 583 system "nscd -i passwd; nscd -i group"; 582 584 583 585 if (defined($Options{'P'})) {
Note: See TracChangeset
for help on using the changeset viewer.