diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-19 05:27:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-19 05:27:25 +0000 |
commit | 82e913df9ca04b0ee904bc230967f130e0e8c45a (patch) | |
tree | 9871e3c2ca8357e3a8b0b2a6242770ed305acc6a /usr | |
parent | 4561e990ca213290b5645319eacc0718c0029d95 (diff) | |
download | pfsense-82e913df9ca04b0ee904bc230967f130e0e8c45a.zip pfsense-82e913df9ca04b0ee904bc230967f130e0e8c45a.tar.gz |
Do not allow password change for non local user.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/system_usermanager.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php index 475aa8b..7009531 100644 --- a/usr/local/www/system_usermanager.php +++ b/usr/local/www/system_usermanager.php @@ -456,6 +456,19 @@ if (isSystemAdmin($HTTP_SERVER_VARS['AUTH_USER']) or $isAdminUser == true) { <?php include("fbegin.inc");?> <?php if ($input_errors) print_input_errors($input_errors);?> <?php if ($savemsg) print_info_box($savemsg);?> +<?php + +/* deterimine if user is not local to system */ +$islocal = false; +foreach($config['system']['user'] as $user) + $islocal = true; +if($islocal == false) { + echo "Sorry, you cannot change the password for a LDAP user."; + include("fend.inc"); + exit; +} + +?> <body link="#000000" vlink="#000000" alink="#000000" onload="<?= $jsevents["body"]["onload"] ?>"> <form action="system_usermanager.php" method="post" name="iform" id="iform"> <table width="100%" border="0" cellpadding="6" cellspacing="0"> |