{"action":"created","issue":{"url":"https://api.github.com/repos/devpi/devpi-ldap/issues/17","labels_url":"https://api.github.com/repos/devpi/devpi-ldap/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/devpi/devpi-ldap/issues/17/comments","events_url":"https://api.github.com/repos/devpi/devpi-ldap/issues/17/events","html_url":"https://github.com/devpi/devpi-ldap/issues/17","id":60749423,"number":17,"title":"can't push as ldap user","user":{"login":"eukaryote","id":25672,"avatar_url":"https://avatars.githubusercontent.com/u/25672?v=3","gravatar_id":"","url":"https://api.github.com/users/eukaryote","html_url":"https://github.com/eukaryote","followers_url":"https://api.github.com/users/eukaryote/followers","following_url":"https://api.github.com/users/eukaryote/following{/other_user}","gists_url":"https://api.github.com/users/eukaryote/gists{/gist_id}","starred_url":"https://api.github.com/users/eukaryote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eukaryote/subscriptions","organizations_url":"https://api.github.com/users/eukaryote/orgs","repos_url":"https://api.github.com/users/eukaryote/repos","events_url":"https://api.github.com/users/eukaryote/events{/privacy}","received_events_url":"https://api.github.com/users/eukaryote/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-11T23:50:05Z","updated_at":"2015-03-12T16:09:10Z","closed_at":null,"body":"I'm using the latest devpi and devpi-ldap at pypi as of a few days ago, and have devpi-ldap configured correctly, I believe. I'm able to run devpi-ldap and authenticate, and I do see the correct groups in the output that comes from LDAP in the response.\r\n\r\nI created a user account for myself after logging in using my ldap credentials, and then created an index as that user, but when I try to push from my personal index to an index that the root user owns, I get the following:\r\n\r\n```\r\n» devpi push mypackage-0.1.0 root/dev\r\nPUSH https://example.com/myuser/dev\r\n401 Unauthorized: user u'myuser' cannot upload to u'root/dev'\r\n```\r\n\r\nI don't see any extra information in the logs with --debug enabled, and the 'root/dev' is one that specifies:\r\n\r\n```\r\n» devpi getjson /root/dev\r\n{\r\n    \"result\": {\r\n        \"acl_upload\": [\r\n            \"root\",\r\n            \":developer\"\r\n        ],\r\n        \"bases\": [\r\n            \"root/prod\"\r\n        ],\r\n        \"projects\": [],\r\n        \"pypi_whitelist\": [\r\n            \"*\"\r\n        ],\r\n        \"type\": \"stage\",\r\n        \"uploadtrigger_jenkins\": null,\r\n        \"volatile\": true\r\n    },\r\n    \"type\": \"indexconfig\"\r\n}\r\n```\r\n\r\nWhen I authenticate using the devpi-ldap script, it shows that I'm in the 'developer' group, which as I understand things should allow me to be able to push to the '/root/dev' index, given that acl_upload is 'root' or ':developer'.\r\n\r\nAm I overlooking anything or should this should be working for me? Is there any way for me to check what groups devpi thinks I belong to apart from the devpi-ldap script, which does show me being in the 'developer' group, or anything I can try?\r\n\r\nI am starting two instances of devpi-server on different hosts with `--ldap-config /abs/path/to/devpi-ldap.yml --restrict-modify root,:developer` on both (one is configured as master, one as replica), and everything else appears to be working fine. I can upload directly to the index that doesn't allow me to push to it when logged in as the same user, so it seems that the acl_upload is being obeyed for uploads but not for pushing between indexes."},"comment":{"url":"https://api.github.com/repos/devpi/devpi-ldap/issues/comments/78512209","html_url":"https://github.com/devpi/devpi-ldap/issues/17#issuecomment-78512209","issue_url":"https://api.github.com/repos/devpi/devpi-ldap/issues/17","id":78512209,"user":{"login":"eukaryote","id":25672,"avatar_url":"https://avatars.githubusercontent.com/u/25672?v=3","gravatar_id":"","url":"https://api.github.com/users/eukaryote","html_url":"https://github.com/eukaryote","followers_url":"https://api.github.com/users/eukaryote/followers","following_url":"https://api.github.com/users/eukaryote/following{/other_user}","gists_url":"https://api.github.com/users/eukaryote/gists{/gist_id}","starred_url":"https://api.github.com/users/eukaryote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eukaryote/subscriptions","organizations_url":"https://api.github.com/users/eukaryote/orgs","repos_url":"https://api.github.com/users/eukaryote/repos","events_url":"https://api.github.com/users/eukaryote/events{/privacy}","received_events_url":"https://api.github.com/users/eukaryote/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T16:09:10Z","updated_at":"2015-03-12T16:09:10Z","body":"I just got in to work and verified that the push does work when the username is included, as you suspected.\r\n\r\nThanks so much for making that pull request, and so quickly too! I'll check out the source from bitbucket and apply the pull request to verify there are no other issues."}}