unosquare / passcore

A self-service password management tool for Active Directory
https://unosquare.github.io/passcore/
MIT License
1.04k stars 232 forks source link

Found multiple with same username: [user] - Count 2 #635

Closed isblokhin closed 3 years ago

isblokhin commented 3 years ago

PassCore Server

Describe the bug hi, I did the installation of docker, this error comes out if the useautocontext parameter is disabled. if you enable it, then another error pops up, that there are several such users. the container could be started by changing the docker file using the string RUN dotnet publish -c Release -o /app /p:PASSCORE_PROVIDER=LDAP without --no-restore , otherwise an error would appear.

"AppSettings": {
    // The following options for AD Provider (remove if you don't use this Provider)
    "UseAutomaticContext": false, // Set true to allow PassCore to reset password using the same credentials, or false if you will fill the credentials below
    "RestrictedADGroups": [
   //   "Administrators",
   //   "Domain Admins",
   //   "Enterprise Admins"
    ], // Set the AD groups to restrict the use of PassCore
    "AllowedADGroups": [], // Set the AD Groups to allow PassCore, if the array is empty all the groups no-restricted above are allowed
    "IdTypeForUser": "SAM", // Possible values are "DN", "GUID", "Name", "SAM", "SID" and "UPN" (Default UPN)
    "UpdateLastPassword": false, // Set true to allow PassCore to  update the last password timestamp
    // The following options are for LDAP Provider (remove if you don't use this Provider)
    "LdapSearchBase": "OU=Structure,DC=domain,DC=ru",
    "LdapSecureSocketLayer": false, // Default for AD is true when using LDAPS 636
    "LdapStartTls": false, // Default for AD is true when using LDAP 389
    "LdapChangePasswordWithDelAdd": false,
    "LdapSearchFilter": "(sAMAccountName={Username})",        //"(sAMAccountName={Username})", // Another value: "(&(objectClass=person)(cn={Username}))"
    // General options (valid for both providers)
    "LdapHostnames": [ "ad.domain.ru" ], // Set your hostname(s)
    "LdapPort": 389, // Default for AD is 389, for LDAPS 636
    "LdapUsername": "user", // Set the username or distinguish name (DN) to bind the LDAP server
    "LdapPassword": "password", // Set the password for the username
    "DefaultDomain": "domain.ru"

To Reproduce

image

LOG: warn: PassCoreLDAPProvider[0] LDAP query: (&(objectClass=person)(cn=test2)) warn: PassCoreLDAPProvider[0] Found multiple with same username: [test2] - Count 2

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.