{"action":"created","issue":{"url":"https://api.github.com/repos/arthurdejong/nss-pam-ldapd/issues/13","repository_url":"https://api.github.com/repos/arthurdejong/nss-pam-ldapd","labels_url":"https://api.github.com/repos/arthurdejong/nss-pam-ldapd/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/arthurdejong/nss-pam-ldapd/issues/13/comments","events_url":"https://api.github.com/repos/arthurdejong/nss-pam-ldapd/issues/13/events","html_url":"https://github.com/arthurdejong/nss-pam-ldapd/issues/13","id":173704107,"number":13,"title":"is shells.checks  necessary?","user":{"login":"liuyangc3","id":6705844,"avatar_url":"https://avatars.githubusercontent.com/u/6705844?v=3","gravatar_id":"","url":"https://api.github.com/users/liuyangc3","html_url":"https://github.com/liuyangc3","followers_url":"https://api.github.com/users/liuyangc3/followers","following_url":"https://api.github.com/users/liuyangc3/following{/other_user}","gists_url":"https://api.github.com/users/liuyangc3/gists{/gist_id}","starred_url":"https://api.github.com/users/liuyangc3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liuyangc3/subscriptions","organizations_url":"https://api.github.com/users/liuyangc3/orgs","repos_url":"https://api.github.com/users/liuyangc3/repos","events_url":"https://api.github.com/users/liuyangc3/events{/privacy}","received_events_url":"https://api.github.com/users/liuyangc3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-29T06:21:30Z","updated_at":"2016-08-29T19:57:58Z","closed_at":null,"body":"if I set a login shell which not list in /etc/shells via chsh.ldap -s will get an error\r\n```\r\nis not a valid shell\r\n```\r\nbut I just don't want to putmy login script in /etc/shells\r\n,becase it is a part of my project, I want modify it in the repo dir.\r\n\r\nso why the shells must be in /etc/shells, is it for some specific purpose?"},"comment":{"url":"https://api.github.com/repos/arthurdejong/nss-pam-ldapd/issues/comments/243236844","html_url":"https://github.com/arthurdejong/nss-pam-ldapd/issues/13#issuecomment-243236844","issue_url":"https://api.github.com/repos/arthurdejong/nss-pam-ldapd/issues/13","id":243236844,"user":{"login":"arthurdejong","id":3147789,"avatar_url":"https://avatars.githubusercontent.com/u/3147789?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurdejong","html_url":"https://github.com/arthurdejong","followers_url":"https://api.github.com/users/arthurdejong/followers","following_url":"https://api.github.com/users/arthurdejong/following{/other_user}","gists_url":"https://api.github.com/users/arthurdejong/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurdejong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurdejong/subscriptions","organizations_url":"https://api.github.com/users/arthurdejong/orgs","repos_url":"https://api.github.com/users/arthurdejong/repos","events_url":"https://api.github.com/users/arthurdejong/events{/privacy}","received_events_url":"https://api.github.com/users/arthurdejong/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T19:57:58Z","updated_at":"2016-08-29T19:57:58Z","body":"The behaviour of chsh.ldap is similar to usual chsh: login shell changes are subject to having the shell listed in /etc/shells. This is also enforced by nslcd. When running chsh.ldap as root you should be able to set any shell (similar to regular chsh).\r\n\r\nWhile in theory this could be relaxed a bit because the LDAP modify operation is done with the user's DN and access controls to prevent malicious actions should be enforced by the LDAP server I am reluctant to change this.\r\n\r\nPatches to disable this exrta check are welcome.\r\n\r\nBy the way, I don't think the error is \"is not a valid shell\" but \"/foo/bar is an invalid shell\"."}}
{"actor":{"display_login":"arthurdejong"}}