You are not logged in.
Pages: 1
User login should not be unique in sql user table.
Because same login could be in multiply entities .
for example:
admin@parent.domain
and admin@child.parent.domain
Glpi should identify user by login and entity, or by email.
Also when importing users from ldap, should be option in to which entity import.
When importing computers from OCS
glpi could compare ocs.machine.domain_name with entity, through special rule, then search osc.login + entity in glpi_users table.
Last edited by linvinus (2009-08-19 13:56:23)
glpi 0.83.2, ocs 2.0.2-2, Ubuntu 8.04.4 LTS
Offline
> User login should not be unique in sql user table.
Login must be unique by design.
There is a ticket (somewhere in the roadmap) to store domain with username.
> Also when importing users from ldap, should be option in to which entity import.
No. User are not imported in 1 entity.
Entity are defined in the right of the user (user/profil relation)
+
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
remi,
>There is a ticket (somewhere in the roadmap) to store domain with username.
then,probably, better use unique email instead login. Because it is login+domain and also unique criteria in help-desk.
Last edited by linvinus (2009-08-19 14:41:08)
glpi 0.83.2, ocs 2.0.2-2, Ubuntu 8.04.4 LTS
Offline
then,probably, better use email . Because it is login+domain and also unique criteria in help-desk.
and what if I don't use helpdesk and I don't have email in my ldap directory ?
everybody can choose the login he wants, and for now login must be unique.
Offline
linvinus wrote:then,probably, better use email . Because it is login+domain and also unique criteria in help-desk.
and what if I don't use helpdesk and I don't have email in my ldap directory ?
everybody can choose the login he wants, and for now login must be unique.
ok, email as id looks not so good. (even glpi will generate unique email if user don't have email in ldap)
But what we will do when will track ticket by email, if we will use domain+login as unique user id.
In this situation we also will have variant when different users can have same email.
My problem is that i have one physical entity but with two email-domains.
For now i can't automatically track tickets from both domains. Because i can't create another user with same login, or add another email for same user.
Also this problem can appear when user send email from public email server (for example gmail.com)
glpi 0.83.2, ocs 2.0.2-2, Ubuntu 8.04.4 LTS
Offline
Login must be unique by design.
You just have the account/user ID as unique filed, why not simply use it? Why use the login? Seems to me 'broken by design'...
There is a ticket (somewhere in the roadmap) to store domain with username.
Some idea when this will be implemented?
Apart of the 'new feature' part, in this subject there's also a terrible BUG 'embedded': if i use more than one auth provider (for me, 3 LDAP servers) and in the providers different users with the same login exist, one user can impersonate another one, because GLPI query the auth provider in turn, and assign credential to the first that authenticate correctly.
This is indeed a SECURITY BUG, and have at least to be mitigated (eg: query the auth provider in turn and if user exist and login fail, stop query and return error).
Offline
remi wrote:Login must be unique by design.
You just have the account/user ID as unique filed, why not simply use it? Why use the login? Seems to me 'broken by design'...
I don't understand whatdo you propose ?
Apart of the 'new feature' part, in this subject there's also a terrible BUG 'embedded': if i use more than one auth provider (for me, 3 LDAP servers) and in the providers different users with the same login exist, one user can impersonate another one, because GLPI query the auth provider in turn, and assign credential to the first that authenticate correctly.
This is indeed a SECURITY BUG, and have at least to be mitigated (eg: query the auth provider in turn and if user exist and login fail, stop query and return error).
no it's not a security bug, it's the way it has been implemented and the way we've designed it
once again, for now : the login field must be unique
Offline
I don't understand whatdo you propose ?
in glpi_users there's the 'name' field (login) but also an 'ID' field: i understand that 'ID' field have to be unique, but really i don't understand because the 'name' field have too...
no it's not a security bug, it's the way it has been implemented and the way we've designed it
Ok, i've understood that is designed in this way, but this is really na security bug; mind only if in one auth provider there's an user 'john' with administrative rights granted, and in another auth provoder a different 'john' user that have not: even the second unprivileged user if login, got administrative rights!
This IS a security bug...
Offline
Pages: 1