Added locking

This commit is contained in:
Jamie Cameron
2008-02-04 05:41:28 +00:00
parent 9340911af7
commit c62c1512a6
5 changed files with 17 additions and 4 deletions

View File

@ -7,6 +7,7 @@ require './ldap-useradmin-lib.pl';
&ReadParse();
$ldap = &ldap_connect();
$schema = $ldap->schema();
&lock_user_files();
if (!$in{'new'}) {
# Get existing group
@ -309,6 +310,7 @@ if ($in{'others'}) {
delete($in{'pass'});
delete($in{'encpass'});
$ldap->unbind();
&unlock_user_files();
&webmin_log(!$in{'new'} ? 'modify' : 'create', 'group', $group, \%in);
# Bounce back to the list