Dear Managers,
I asked whether poppassd can run on a Solaris with NIS+ two weeks ago.
Unfortunately, I haven't received any suggestion. Therefore, I have
to abandon the idea of using poppassd.
Thanks for your attention.
Here 's the original question:
Hi Managers,
Is it possible to use poppassd under NIS+? I found that sometimes
poppassd works but sometimes it doesn't, even though I modified
P1[] to P4[] in poppassd.c to include the response prompts of
/bin/password under NIS+.
The followings are what I find:
For local users (i.e. those can be found in /etc/passwd):
poppassd works properly under all circumstances
For NIS+ users:
i) poppassd works properly after those NIS+ users perform a keylogin
ii) poppassd does not work if rpc services are restarted or the users
perform a keylogout
Trussing poppassd shows that the prompts returned from /bin/passwd are
different for case i) and ii). Here are the snapshots:
Case i):
........
read(8, " E n t e r l o g i n (".., 511) = 28
write(8, " t e s t 1 2 3\n", 9) = 9
read(8, "\n", 511) = 1
read(8, " N e w p a s s w o r d".., 510) = 14
write(8, " a b c 1 2 3\n", 7) = 7
read(8, "\n", 511) = 1
read(8, " R e - e n t e r n e w".., 510) = 23
write(8, " a b c 1 2 3\n", 7) = 7
read(8, "\n", 511)
........
Here, test123 is the old password while abc123 is the new password.
Case ii):
........
read(8, " E n t e r l o g i n (".., 511) = 28
write(8, " a b c 1 2 3\n", 7) = 7
read(8, "\n p a s s w d ( S Y S T".., 511) = 37
fxstat(2, -1, 0x08045E80) Err#9 EBADF
.........
Here, "p a s s w d ( S Y S T" is not the expected repsonse after entering
the original password.
How should I modify the code such that I can use poppassd to change the
passwords under all circumstances?
TIA and I will summarise.
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:50 CDT