openstf / stf

Control and manage Android devices from your browser.
https://openstf.io
Other
13.16k stars 2.7k forks source link

mac openstf and ldap auth fail (Authentication Failure for "test account" #1350

Closed QA-Jihyun closed 4 months ago

QA-Jihyun commented 4 months ago

I'm trying to use stf on mac. I am using the following firmware for "stf-ldap" connection

rethinkdb --bind all
sudo /usr/libexec/slapd -h ldap://111.222.333.444 -d 50
sudo stf local --port 8100 --public-ip 111.222.333.444 --auth-type ldap --auth-options '["--ldap-url","ldap://111.222.333.444","--ldap-search-dn","dc=test,dc=com","--ldap-bind-dn","cn=admin,dc=test,dc=com","--ldap-bind-credentials","!@test34","--ldap-search-field","email","--ldap-username-field","email"]'

Afterwards, connect to stf in the browser. (111.222.333.444/auth/ldap)

username field = ldap email password = password of ldap user

ldap log

658b6e5f odusers_copy_krbrealm: No entry associated with KerberosKDC cn=kerberoskdc,cn=config,dc=test,dc=com
658b6e5f odusers_krb_auth: could not retrieve krb realm while authing younjihyun+email=test@test.co+sn=jihyun
  0000:  30 0c 02 01 03 61 07 0a  01 32 04 00 04 00         0....a...2....
ldap_write: want=14, written=14
  0000:  30 0c 02 01 03 61 07 0a  01 32 04 00 04 00         0....a...2....
ldap_read: want=8, got=7
  0000:  30 05 02 01 04 42 00                               0....B.
ber_dump: buf=0x600002124a40 ptr=0x600002124a40 end=0x600002124a45 len=5
  0000:  02 01 04 42 00                                     ...B.
ldap_read: want=8 error=Resource temporarily unavailable

stf log

WRN/auth-ldap 26828 [::1] Authentication failure for "test@test.com"

apache Directory Studio is I am connecting to DIT with bind DN >> cn=admin,dc=test,dc=scom and bindpassword, and DIT settings seem to be set up well.

Does anyone know why ldap login keeps failing?

4d1b4c366505fdd83d1c79bee6335f14 972bad8e5ea170040586b10b523708e9 a757197e3a1e46b5de3ffa21de09dc63