Re: pam_ldap and passwd

From: Yuri Khotyaintsev <yuri_at_irfu.se>
Date: Mon, 24 Nov 2003 14:17:06 +0100
Clement Laforet wrote:
> Yuri Khotyaintsev <yuri_at_irfu.se> wrote:
>>As I understand pam_ldap supports changing LDAP passwords. Is it
>>supposed to work on FreeBSD ?
> 
> 
> according to src/usr.bin/passwd/passwd.c:
> ...
>         /* check where the user's from */
>         switch (pwd->pw_fields & _PWF_SOURCE) {
>         case _PWF_FILES:
>                 fprintf(stderr, "Changing local password for %s\n",
>                     pwd->pw_name);
>                 break;
>         case _PWF_NIS:
>                 fprintf(stderr, "Changing NIS password for %s\n",
>                     pwd->pw_name);
>                 break;
>         default:
>                 /* XXX: Green men ought to be supported via PAM. */
>                 errx(1, 
>           "Sorry, `passwd' can only change passwords for local or NIS users.");
>         }
> ...
> 
> If you change default: behaviour you CAN change your password. Currently,
> passwd is not fully PAM-aware. 
> 
> clem
> 

I think I will wait for "official" solution rather then hacking myself...

Do you have any patches for this ?

Yuri
Received on Mon Nov 24 2003 - 04:17:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:30 UTC