vault write auth/ldap/groups/administrator policies=administrator
Success! Data written to: auth/ldap/groups/administrator
vault write auth/ldap/users/david...@domain.tld groups=administrator
Success! Data written to: auth/ldap/users/david...@domain.tld
VAULT_ADDR=https://domain.tld:8200 vault auth -method=ldap username=david...@domain.tld
Password (will be hidden):
Error making API request.
URL: PUT https://domain.tld:8200/v1/auth/ldap/login/david...@domain.tld
Code: 400. Errors:
* invalid character '<' looking for beginning of value
{"time":"2016-07-05T11:04:53Z","type":"response","error":"","auth":{"display_name":"","policies":null,"metadata":null},"request":{"operation":"update","client_token":"","path":"auth/ldap/login/david...@domain.tld","data":{"password":"hmac-sha256:8522******"},"remote_address":"86.168.***.***"},"response":{"secret":null,"data":{"error":"hmac-sha256:7bba******"},"redirect":""}}
Hello All,So in my continued effort to producing a Vault PoC deployment I'm tackling LDAP integrationHowever I have run into an oddity and would appreciate if someone could let me know if there is any settings changes I can make to enable debug logs ?Created groups:vault write auth/ldap/groups/administrator policies=administrator
Success! Data written to: auth/ldap/groups/administrator
Assigned user to the group:
vault write auth/ldap/users/david.busby@domain.tld groups=administrator
Success! Data written to: auth/ldap/users/david.busby@domain.tld
And attempted authentication:VAULT_ADDR=https://domain.tld:8200 vault auth -method=ldap username=david.busby@domain.tld
Password (will be hidden):
Error making API request.
Code: 400. Errors:
* invalid character '<' looking for beginning of value
Audit logs:{"time":"2016-07-05T11:04:53Z","type":"response","error":"","auth":{"display_name":"","policies":null,"metadata":null},"request":{"operation":"update","client_token":"","path":"auth/ldap/login/david.bu...@domain.tld","data":{"password":"hmac-sha256:8522******"},"remote_address":"86.168.***.***"},"response":{"secret":null,"data":{"error":"hmac-sha256:7bba******"},"redirect":""}}
PUT .../v1/auth/ldap/login/david...@domain.tld
Code: 400. Errors:
* LDAP fetch of distinguishedName=cn=david...@domain.tld,cn=email,ou=users,dc=****,dc=****,dc=com failed: LDAP Result Code 80 "Other": Other
vault read auth/ldap/config
Key Value
--- -----
binddn
bindpass
certificate
discoverdn false
groupdn
insecure_tls false
starttls true
upndomain
url ldaps://lprovider_domain.tld:636
userattr cn
userdn cn=email,ou=users,dc=domain,dc=provider_domain,dc=com
Hi David,
It's hard to say what might be going on without any sort of idea of
your configuration. The last error message suggests that logs from
your LDAP server might be useful as well...80 is defined as "This
indicates that some problem was encountered during processing that is
not covered by any of the other defined result codes (e.g., a server
error)."
Feel free to share your configuration and I can look and see if
anything jumps out about it.
Best,
Jeff
On Tue, Jul 5, 2016 at 8:22 AM, David Busby <david...@percona.com> wrote:
> Performed a rolling upgrade to vault 0.6.0 and received a new error message
> ...
>
>> PUT .../v1/auth/ldap/login/david.bu...@domain.tld
>>
>> Code: 400. Errors:
>> * LDAP fetch of
>> distinguishedName=cn=david.bu...@domain.tld,cn=email,ou=users,dc=****,dc=****,dc=com
>> failed: LDAP Result Code 80 "Other": Other
>
>
>
>
> On Tuesday, July 5, 2016 at 12:18:21 PM UTC+1, David Busby wrote:
>>
>> Vault version is 0.5.3; perhaps an upgrade is needed ?
>>
>> On Tuesday, July 5, 2016 at 12:15:37 PM UTC+1, David Busby wrote:
>>>
>>> Hello All,
>>>
>>> So in my continued effort to producing a Vault PoC deployment I'm
>>> tackling LDAP integration
>>>
>>> However I have run into an oddity and would appreciate if someone could
>>> let me know if there is any settings changes I can make to enable debug logs
>>> ?
>>>
>>> Created groups:
>>>
>>>> vault write auth/ldap/groups/administrator policies=administrator
>>>>
>>>> Success! Data written to: auth/ldap/groups/administrator
>>>
>>>
>>> Assigned user to the group:
>>>
>>>> vault write auth/ldap/users/david.busby@domain.tld groups=administrator
>>>>
>>>> Success! Data written to: auth/ldap/users/david.busby@domain.tld
>>>
>>>
>>> And attempted authentication:
>>>
>>>> VAULT_ADDR=https://domain.tld:8200 vault auth -method=ldap
>>>> username=david.busby@domain.tld
>>>>
>>>> Password (will be hidden):
>>>>
>>>> Error making API request.
>>>>
>>>>
>>>> URL: PUT
>>>>
>>>> Code: 400. Errors:
>>>>
>>>>
>>>> * invalid character '<' looking for beginning of value
>>>
>>>
>>> Audit logs:
>>>
>>>>
>>>> {"time":"2016-07-05T11:04:53Z","type":"response","error":"","auth":{"display_name":"","policies":null,"metadata":null},"request":{"operation":"update","client_token":"","path":"auth/ldap/login/david.bu...@domain.tld","data":{"password":"hmac-sha256:8522******"},"remote_address":"86.168.***.***"},"response":{"secret":null,"data":{"error":"hmac-sha256:7bba******"},"redirect":""}}
>> PUT .../v1/auth/ldap/login/david...@domain.tld
>>
>> Code: 400. Errors:
>> * LDAP fetch of
>> distinguishedName=cn=david...@domain.tld,cn=email,ou=users,dc=****,dc=****,dc=com
>> failed: LDAP Result Code 80 "Other": Other
>
>
>
>
> On Tuesday, July 5, 2016 at 12:18:21 PM UTC+1, David Busby wrote:
>>
>> Vault version is 0.5.3; perhaps an upgrade is needed ?
>>
>> On Tuesday, July 5, 2016 at 12:15:37 PM UTC+1, David Busby wrote:
>>>
>>> Hello All,
>>>
>>> So in my continued effort to producing a Vault PoC deployment I'm
>>> tackling LDAP integration
>>>
>>> However I have run into an oddity and would appreciate if someone could
>>> let me know if there is any settings changes I can make to enable debug logs
>>> ?
>>>
>>> Created groups:
>>>
>>>> vault write auth/ldap/groups/administrator policies=administrator
>>>>
>>>> Success! Data written to: auth/ldap/groups/administrator
>>>
>>>
>>> Assigned user to the group:
>>>
>>>> vault write auth/ldap/users/david...@domain.tld groups=administrator
>>>>
>>>> Success! Data written to: auth/ldap/users/david...@domain.tld
>>>
>>>
>>> And attempted authentication:
>>>
>>>> VAULT_ADDR=https://domain.tld:8200 vault auth -method=ldap
>>>> username=david...@domain.tld
>>>>
>>>> Password (will be hidden):
>>>>
>>>> Error making API request.
>>>>
>>>>
>>>> URL: PUT
>>>>
>>>> Code: 400. Errors:
>>>>
>>>>
>>>> * invalid character '<' looking for beginning of value
>>>
>>>
>>> Audit logs:
>>>
>>>>
>>>> {"time":"2016-07-05T11:04:53Z","type":"response","error":"","auth":{"display_name":"","policies":null,"metadata":null},"request":{"operation":"update","client_token":"","path":"auth/ldap/login/david...@domain.tld","data":{"password":"hmac-sha256:8522******"},"remote_address":"86.168.***.***"},"response":{"secret":null,"data":{"error":"hmac-sha256:7bba******"},"redirect":""}}
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/c79b1bdd-7fc2-4720-b40b-0c50a880e6e3%40googlegroups.com.