{"action":"created","issue":{"url":"https://api.github.com/repos/nickstenning/docker-slapd/issues/5","labels_url":"https://api.github.com/repos/nickstenning/docker-slapd/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/nickstenning/docker-slapd/issues/5/comments","events_url":"https://api.github.com/repos/nickstenning/docker-slapd/issues/5/events","html_url":"https://github.com/nickstenning/docker-slapd/issues/5","id":58572225,"number":5,"title":"admin password in ENV","user":{"login":"lpeterse","id":236833,"avatar_url":"https://avatars.githubusercontent.com/u/236833?v=3","gravatar_id":"","url":"https://api.github.com/users/lpeterse","html_url":"https://github.com/lpeterse","followers_url":"https://api.github.com/users/lpeterse/followers","following_url":"https://api.github.com/users/lpeterse/following{/other_user}","gists_url":"https://api.github.com/users/lpeterse/gists{/gist_id}","starred_url":"https://api.github.com/users/lpeterse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpeterse/subscriptions","organizations_url":"https://api.github.com/users/lpeterse/orgs","repos_url":"https://api.github.com/users/lpeterse/repos","events_url":"https://api.github.com/users/lpeterse/events{/privacy}","received_events_url":"https://api.github.com/users/lpeterse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-23T11:10:25Z","updated_at":"2015-02-23T11:26:21Z","closed_at":"2015-02-23T11:26:21Z","body":"The solution to have the username and password as ENV variables is suboptimal. Note that they are still visible to _every_ process during runtime.\r\n\r\n```\r\n% docker run -t -i -p -p 389:389 docker-slapd /bin/bash\r\nroot@e2274dbd0002:/# env\r\n..\r\nLDAP_ORGANISATION=Acme Widgets Inc.\r\nLDAP_ROOTPASS=toor\r\nLDAP_DOMAIN=example.com\r\n```"},"comment":{"url":"https://api.github.com/repos/nickstenning/docker-slapd/issues/comments/75526052","html_url":"https://github.com/nickstenning/docker-slapd/issues/5#issuecomment-75526052","issue_url":"https://api.github.com/repos/nickstenning/docker-slapd/issues/5","id":75526052,"user":{"login":"lpeterse","id":236833,"avatar_url":"https://avatars.githubusercontent.com/u/236833?v=3","gravatar_id":"","url":"https://api.github.com/users/lpeterse","html_url":"https://github.com/lpeterse","followers_url":"https://api.github.com/users/lpeterse/followers","following_url":"https://api.github.com/users/lpeterse/following{/other_user}","gists_url":"https://api.github.com/users/lpeterse/gists{/gist_id}","starred_url":"https://api.github.com/users/lpeterse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpeterse/subscriptions","organizations_url":"https://api.github.com/users/lpeterse/orgs","repos_url":"https://api.github.com/users/lpeterse/repos","events_url":"https://api.github.com/users/lpeterse/events{/privacy}","received_events_url":"https://api.github.com/users/lpeterse/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T11:26:21Z","updated_at":"2015-02-23T11:26:21Z","body":"```\r\nYou can (and should) configure the following by providing environment variables to docker run:\r\n```\r\n\r\nI missed that one. It is of course safe to have it passed once `-e LDAP_ROOTPASS=...` and not passing it afterwards. Maybe this should be stated more clearly."}}