-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request Administrator's Credentials adhoc #21
base: master
Are you sure you want to change the base?
Request Administrator's Credentials adhoc #21
Conversation
as this user should have permissions to modify the following attributes in LDAP: * userPassword * pwdReset * pwdAccountLockedTime For that reason, the `always_authenticate_admin` variable has been introduced in `config.inc.php`. When set to true, input fields for administrator's username and password appear in `Reset Password` and `Lock/Unlock Account` forms. When user submits one of this form, then `ldap_bidndn` and `ldap_bindpw` are taken from the respective `POST` variables, overwriting any value they have in `config.inc.php` or `config.inc.local.php` files. The default value of `always_authenticate_admin` is false, providing the old functionality.
I have also added the respective messages in |
Hello @GeKasap thanks for this proposition. I understand your use case, but I don't think that asking admin credentials for all actions are a good solution. People installing Service Desk should protect the configuration file and the server to avoid any credentials leak. Moreover, you seems to introduce buggy changes in your code, like replacing the value for pwdAccountLockedTime. I would be happy to have feedback from other users of Service Desk before accepting this code. |
Hello @coudot , |
Reset value of pwdAccountLockedTime back to administrative lock.
I know it's a bit late to participate, and I'm "just a user". But in my opinion, you should use Apache config (or any other web server you can use) to protect this application. In my case, i put an apache config which ask for name and password, and looks in a specific OU of the LDAP for the account given. So, there's no password in plain text in the configuration, and you can authorize many account for using this application. |
Hello @micter59 using Apache authentication does not prevent to use a dedicated account in Service Desk to connect to the LDAP directory. |
Sorry, I misunderstood the question. |
Setting bind user in configuration is not safe in some deployments,
as this user should have permissions to modify the following attributes
in LDAP:
For that reason, the
always_authenticate_admin
variable has been introducedin
config.inc.php
. When set to true, input fields for administrator's usernameand password appear in
Reset Password
andLock/Unlock Account
forms.When user submits one of this form, then
ldap_bidndn
andldap_bindpw
aretaken from the respective
POST
variables, overwriting any value they havein
config.inc.php
orconfig.inc.local.php
files.The default value of
always_authenticate_admin
is false, providing theold functionality.