Skip to content

Instantly share code, notes, and snippets.

@rbirnie
Last active December 10, 2015 22:59
Show Gist options
  • Save rbirnie/4506554 to your computer and use it in GitHub Desktop.
Save rbirnie/4506554 to your computer and use it in GitHub Desktop.
LDAP Result Log Key

tail -f /usr/share/foreman/log/production.log

Successful login: # Woot!

Started POST "/users/login" for 10.0.0.2 at Thu Jan 10 14:50:01 -0800 2013
Processing by UsersController#login as HTML
Parameters: {...}

Bad User Password:

Started POST "/users/login" for 10.0.0.2 at Thu Jan 10 14:50:01 -0800 2013
Processing by UsersController#login as HTML
Parameters: {...}
Result: 49
Message: Invalid Credentials
Failed to authenticate rbirnie

Can't Find User in LDAP:

Started POST "/users/login" for 10.0.0.2 at Thu Jan 10 14:50:01 -0800 2013
Processing by UsersController#login as HTML
Parameters: {...}
invalid user

Auth User doesn't have LDAP search access or a bad base DN for the users:

Started POST "/users/login" for 10.0.0.2 at Thu Jan 10 14:50:01 -0800 2013
Processing by UsersController#login as HTML
Parameters: {...}
Search Result: 32
Search Message: No Such Object
invalid user

Bad Auth Source Account password

Started POST "/users/login" for 10.0.0.2 at Thu Jan 10 14:51:18 -0800 2013
Processing by UsersController#login as HTML
Parameters: {...}
Search Result: 49
Search Message: Invalid Credentials
invalid user

Can't find your Auth Source Account: # maybe add the OU info for the user arround the account

Started POST "/users/login" for 10.0.0.2 at Thu Jan 10 14:54:03 -0800 2013
Processing by UsersController#login as HTML
Parameters: {...}
Search Result: 34
Search Message: Invalid DN Syntax
invalid user

Bad LDAP server name or port:

Started POST "/users/login" for 10.0.0.2 at Thu Jan 10 14:55:08 -0800 2013
Processing by UsersController#login as HTML
Parameters: {...}
Operation FAILED: LdapError: Server ldap.local refused connection on port 635.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment