-
Notifications
You must be signed in to change notification settings - Fork 640
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
[Bug] LDAP authentication - user xyz not found #2164
Comments
Does the user exist in TheHive? |
@nadouani I actually have this issue as well. I attempted to migrated my previous 3.x TheHive to RockyLinux 8 from a Red Hat 7 Server and was having issues. I instead cloned my Red Hat 7 Server and performed the migration on the Red Hat 7 Host. The Migration worked on the Red Hat 7 clone, and I am able to access TheHive and view any preexisting LDAP users. I then performed a backup of Cassandra and Elasticsearch and Restored the backup files to the RockyLinux 8 Server. I also copied the 2021-08-18 07:48:55,727 [WARN] from org.thp.thehive.services.TOTPAuthSrv in application-akka.actor.default-dispatcher-10 [00000003|] local fails: org.thp.scalligraph.AuthenticationError: Authentication failure
2021-08-18 07:48:55,727 [WARN] from org.thp.thehive.services.TOTPAuthSrv in application-akka.actor.default-dispatcher-10 [00000003|] ldap fails: org.thp.scalligraph.NotFoundError: User xyz not found Environment where TheHive is not working:
Environment where TheHive is working:
I still have both the Red Hat 7 VM and RockyLinux 8 Server available if there are additional logs that I could provide to assist. |
@nadouani The user doesn't exist in TheHive. But there shouldn't be autocreation or something like that ? For example. I have a user in LDAP server and I have configured linking with LDAP server and I can log into TheHive by a user from LDAP server. Something like sssd. |
I am facing the same issue. I am not able to auto-create user in thehive. As mentioned in the doc - @nadouani @WingerHusar can you guys help me with this |
Or is it like if you are trying to login to thehive using openldap credentials then it's a rule that you have to make a user in thehive ( without giving password ) as in openldap ? |
Request Type
Bug
Work Environment
Problem
Hi,
I have problem with LDAP authentication. I have a ldap server with accounts. I configured TheHive LDAP authentication but there is a problem with authentication.
I know that the user is available because I can log in as the user on another Linux server using sssd.
When I use this command on the Hive server side:
The command works, I get all accounts and I can see xyz user.
Any idea ?
Configuration
...
{
name: ldap
hosts: ["ldap.something.org"]
bindDN: "cn=readonly,ou=people,dc=ldap,dc=something,dc=org"
bindPW: "my_password"
baseDN: "dc=ldap,dc=something,dc=org"
filter: "(objectClass=posixAccount)"
useSSL: no
}
...
Logs
2021-08-11 11:37:48,315 [WARN] from org.thp.thehive.services.TOTPAuthSrv in application-akka.actor.default-dispatcher-12 - ldap fails: org.thp.scalligraph.NotFoundError: User xyz not found
The text was updated successfully, but these errors were encountered: