{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/pepper/issues/63","labels_url":"https://api.github.com/repos/saltstack/pepper/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/pepper/issues/63/comments","events_url":"https://api.github.com/repos/saltstack/pepper/issues/63/events","html_url":"https://github.com/saltstack/pepper/issues/63","id":117404058,"number":63,"title":"Error using LDAP","user":{"login":"PierreR","id":93115,"avatar_url":"https://avatars.githubusercontent.com/u/93115?v=3","gravatar_id":"","url":"https://api.github.com/users/PierreR","html_url":"https://github.com/PierreR","followers_url":"https://api.github.com/users/PierreR/followers","following_url":"https://api.github.com/users/PierreR/following{/other_user}","gists_url":"https://api.github.com/users/PierreR/gists{/gist_id}","starred_url":"https://api.github.com/users/PierreR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierreR/subscriptions","organizations_url":"https://api.github.com/users/PierreR/orgs","repos_url":"https://api.github.com/users/PierreR/repos","events_url":"https://api.github.com/users/PierreR/events{/privacy}","received_events_url":"https://api.github.com/users/PierreR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-17T17:17:49Z","updated_at":"2015-11-17T20:22:47Z","closed_at":null,"body":"I have just switched from `pam` to `ldap` and I get the following error:\r\nPepper error: Server error.\r\nHere is the configuration for `pepper`:\r\n```\r\nSALTAPI_USER=name\r\nSALTAPI_PASS=pass\r\nSALTAPI_URL=https://saltmaster.sandbox.srv.lan:8000\r\nSALTAPI_EAUTH=ldap\r\n```\r\nOn the salt master, everything works as expected which means the ldap configuration on the master is correct:\r\n` salt –a ldap '*' test.ping`\r\n\r\nThe salt-api, does return me a valid token when I use:\r\n```\r\ncurl -sS -i -k -H 'Content-Type: application/json' -d '[{\"eauth\":\"ldap\",\"username\":\"user\",\"password\":\"pass\",\"client\":\"local\",\"tgt\":\"*\",\"fun\":\"test.ping\"}]' https://localhost:8000/login\r\n```\r\nAlthough the following command\r\n```\r\ncurl -ksi https://localhost:8000 -H \"Accept: application/x-yaml\" -H \"X-Auth-Token: 2f663bdf9680e59df1dc12b70a40c74f30408cfe\" -d client=local -d tgt='*' -d fun='test.ping' -d arg\r\n```\r\nwill fail with:\r\n```\r\n File \\\"/usr/lib/python2.7/site-packages/salt/client/__init__.py\\\"\\\r\n  , line 290, in run_job\\n    raise SaltClientError(general_exception)\\nSaltClientError:\\\r\n  \\ unpack(b) received extra data.\\n\"\r\nstatus: 500\r\n```\r\nSo it might be a salt-api issue or me using the `api` incorrectly.\r\n\r\nExtra notes: \r\n* I am using `https` (but it has been working fine with `pepper` and `pam`)\r\n* salt-master version is 2015.5.5-1.el7 (centos 7)\r\n\r\nI am not sure what to try next. Thanks for your help."},"comment":{"url":"https://api.github.com/repos/saltstack/pepper/issues/comments/157495890","html_url":"https://github.com/saltstack/pepper/issues/63#issuecomment-157495890","issue_url":"https://api.github.com/repos/saltstack/pepper/issues/63","id":157495890,"user":{"login":"PierreR","id":93115,"avatar_url":"https://avatars.githubusercontent.com/u/93115?v=3","gravatar_id":"","url":"https://api.github.com/users/PierreR","html_url":"https://github.com/PierreR","followers_url":"https://api.github.com/users/PierreR/followers","following_url":"https://api.github.com/users/PierreR/following{/other_user}","gists_url":"https://api.github.com/users/PierreR/gists{/gist_id}","starred_url":"https://api.github.com/users/PierreR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierreR/subscriptions","organizations_url":"https://api.github.com/users/PierreR/orgs","repos_url":"https://api.github.com/users/PierreR/repos","events_url":"https://api.github.com/users/PierreR/events{/privacy}","received_events_url":"https://api.github.com/users/PierreR/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T20:22:47Z","updated_at":"2015-11-17T20:22:47Z","body":"PS all these `salt-api` errors looks strange to me. Do I do something wrong ? I know the token is OK because whenever I modify it I will have an unauthorized error as expected."}}