Open dnielso5 opened 1 day ago
Are you sure the query works correctly? Have you tried to use the query without Pingvin Share e.g with ldapsearch to make sure that it's a bug of Pingvin Share?
Regarding the wrong IP, I've just created a release that introduces a new environment variable called TRUST_PROXY
. You have to set this variable to true
if a reverse proxy is in front of your container.
Additionally I've disabled email login if LDAP is enabled in the latest release because LDAP works only with usernames in Pingvin Share.
ill try again when i get a chance to update.
User Query: (&(objectClass=user)(sAMAccountName=yourUserName)(memberof=CN=FileSharing,OU=Users,OU="All Users",DC=domain,DC=name,DC=com))
This part does not seem to be right: sAMAccountName=yourUserName
.
Shouldn't it be %username%
instead of yourUserName
?
š Reproduction steps
enable LDAP and enter server information:
Server URL: servername.domain.name.com
Bind DN: My admin account name
Bind Password: My password
User base: OU=Users,OU="All Users",DC=domain,DC=name,DC=com
User Query: (&(objectClass=user)(sAMAccountName=yourUserName)(memberof=CN=FileSharing,OU=Users,OU="All Users",DC=domain,DC=name,DC=com))
I have also tried: %username% and (sAMAccountName=or0202420)
Admin Group: FileSharingAdmins
š Expected behavior
Connect and log in with user accounts
š Actual Behavior
Fails to connect
š Logs
[Nest] 44 - 09/18/2024, 4:35:49 PM LOG [AuthService] Failed login attempt for user or0202420 from IP 10.89.1.2
I will point out that the IP of 10.89.1.2 is new to me, i am not sure why that's there. the only thing i can think of is that I'm using a reverse proxy on the same server.
When trying to sign in with an email i get this error: