Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement PAM_SM_PASSWORD #21

Closed
Jnchi opened this issue Dec 19, 2018 · 10 comments
Closed

Implement PAM_SM_PASSWORD #21

Jnchi opened this issue Dec 19, 2018 · 10 comments
Assignees
Projects
Milestone

Comments

@Jnchi
Copy link
Contributor

Jnchi commented Dec 19, 2018

This function is used to (re-)set the authentication token of the user. --pam_sm_chauthtok

int
pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc, const char **argv)
{
/* This is a dummy function */
return PAM_SUCCESS;
}

Source: pam_unix

Bugs: CyberNinjas/libnss-pool#4
Bugs: #22

See also: https://github.com/donapieppo/libnss-ato

@Jnchi Jnchi added this to the 0.0.1 milestone Dec 19, 2018
@Jnchi Jnchi self-assigned this Dec 19, 2018
@Jnchi Jnchi added this to To do in Tasks via automation Dec 19, 2018
@Jnchi Jnchi pinned this issue Dec 19, 2018
@Jnchi
Copy link
Contributor Author

Jnchi commented Dec 19, 2018

@Jnchi
Copy link
Contributor Author

Jnchi commented Dec 19, 2018

@Jnchi
Copy link
Contributor Author

Jnchi commented Dec 19, 2018

@Jnchi
Copy link
Contributor Author

Jnchi commented Dec 19, 2018

@Jnchi
Copy link
Contributor Author

Jnchi commented Dec 19, 2018

/etc/pam.d/sshd

+auth [success=1 default=ignore] pam_aad.so client_id= resource_id= tenant= required_group_id=

+auth required pam_permit.so

-@include common-auth
-#@include common-auth
ssh jnchi@10.0.3.65
Enter the following code at https://aka.ms/devicelogin : FB8TD984U
Please hit enter after you have logged in.
packet_write_wait: Connection to 10.0.3.65 port 22: Broken pipe
sudo /usr/sbin/sshd -ddd -f /etc/ssh/sshd_config
[ . . . TRUNCATED . . . ]
PAM: pam_setcred(): Permission denied

@Jnchi
Copy link
Contributor Author

Jnchi commented Dec 19, 2018

/*
 * Attempt password authentication via PAM
 */
int
sshpam_auth_passwd(Authctxt *authctxt, const char *password)
{

Source: openssh/auth-pam.c

@Jnchi
Copy link
Contributor Author

Jnchi commented Feb 1, 2019

PAM_EXTERN int pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc,

@Jnchi
Copy link
Contributor Author

Jnchi commented Feb 1, 2019

@Jnchi
Copy link
Contributor Author

Jnchi commented Feb 1, 2019

@Jnchi
Copy link
Contributor Author

Jnchi commented Feb 1, 2019

@Jnchi Jnchi closed this as completed Feb 4, 2019
Tasks automation moved this from To do to Done Feb 4, 2019
@Jnchi Jnchi unpinned this issue Feb 4, 2019
@Jnchi Jnchi added the wontfix label Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Tasks
Done
Development

No branches or pull requests

1 participant