Skip to content
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

Duplicate user login/email Again #504

Closed
maxdie opened this issue Mar 15, 2017 · 12 comments
Closed

Duplicate user login/email Again #504

maxdie opened this issue Mar 15, 2017 · 12 comments
Assignees
Milestone

Comments

@maxdie
Copy link

maxdie commented Mar 15, 2017

Hello, all!
Have trouble to autenticate in sysPass via LDAP
Import User from AD
image

Log from authentication
image

In Web
image

The FIX e97a9c5 do not resolve my trouble.

Please help resolve the issue.

@nuxsmin
Copy link
Owner

nuxsmin commented Mar 15, 2017

Hello, is there any duplicated login or email indeed?

@nuxsmin nuxsmin added this to the 2.1 milestone Mar 15, 2017
@nuxsmin nuxsmin self-assigned this Mar 15, 2017
@maxdie
Copy link
Author

maxdie commented Mar 15, 2017

Hello.
I import 4 user from AD group who have Admin priveleges on sysPass.
Name, Login and email is different on AD and sysPass.
But login not sAMAccountName get form from uID atribute.

image

image

@nuxsmin
Copy link
Owner

nuxsmin commented Mar 15, 2017

Ok, Did you mean that the uid as login is wrong?

@maxdie
Copy link
Author

maxdie commented Mar 15, 2017

No, uid is temporaty object from another bussines-software. By default the object uid is empty. The samAccounts object right login form, from ActiveDirectory. After Import user in sysPass visible login have form uid object, but if I try authenticate with uid logon name have mesage "ERROR Log in Type : authBrowser Type : authLdap LDAP Server : xxx.xx.xxx.xx " if use real samAccountsName message " Duplicated user login/email"

Sorry for my english.

@nuxsmin
Copy link
Owner

nuxsmin commented Mar 15, 2017

Don't worry, I understood your issue.

I'm currently solving it by adding an option to select which LDAP attribute should be used to the user's login. So the sysPass user's login will be the sAMAccountName in your case...

@maxdie
Copy link
Author

maxdie commented Mar 15, 2017

Thank you very match. I will wait.

@cyb0rg01
Copy link

To simplify it: You should always use the sAMAccountName as your login. This is beside the UID the most unique value, to be honest. I think you should force with your code, thats my professional view.

@nuxsmin
Copy link
Owner

nuxsmin commented Mar 15, 2017

It should be fixed in the latest commit to the master branch. Please download from the master branch

@maxdie
Copy link
Author

maxdie commented Mar 16, 2017

Hello.
Issue not resolve
When I try import sAMAcountName/ uid get messages
image

When I try import userPrincipalName or login get messages
image
But in User tab in sysPass is empty

@maxdie
Copy link
Author

maxdie commented Mar 16, 2017

From apache Log when I import
[Thu Mar 16 13:07:24.804948 2017] [:error] [pid 11691] [client 10.111.33.180:22499] PHP Fatal error: Uncaught Error: Call to undefined method SP\DataModel\UserData::getLoginPass() in /var/www/html/sysPass/inc/SP/Mgmt/Users/UserLdap.class.php:116\nStack trace:\n#0 /var/www/html/sysPass/inc/SP/Mgmt/Users/UserLdapSync.class.php(112): SP\Mgmt\Users\UserLdap->add()\n#1 /var/www/html/sysPass/inc/SP/Controller/ItemActionController.class.php(1080): SP\Mgmt\Users\UserLdapSync::run(Array)\n#2 /var/www/html/sysPass/inc/SP/Controller/ItemActionController.class.php(179): SP\Controller\ItemActionController->ldapImportAction()\n#3 /var/www/html/sysPass/ajax/ajax_itemSave.php(35): SP\Controller\ItemActionController->doAction()\n#4 {main}\n thrown in /var/www/html/sysPass/inc/SP/Mgmt/Users/UserLdap.class.php on line 116, referer: http://pass.local.net/index.php

@nuxsmin
Copy link
Owner

nuxsmin commented Mar 16, 2017

Please download the latest update from the master branch. It should be fixed.

@maxdie
Copy link
Author

maxdie commented Mar 16, 2017

Supper!!!! All works.

Thank you very match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants