NT - unix password sync works for AIX after some change in chgpasswd.c

Ralph Schuster ralph.schuster at oetv.de
Fri May 5 09:26:06 GMT 2000


Hi all,
NT - unix password synchronisation works for AIX 4.21,
if one performs some (hopefully) minor changes in the source file
"chgpasswd.c".

I tried to configure "unix password sync" for samba 2.0.6 on a RS6000
with AIX 4.21.
However, looking in the log file - with log level 100 - it seemed that
samba
doesn't chat with the unix passwd program.

The problem was hidden in the function "dochild", where the function
call

	ioctl(slave, I_PUSH, "ldterm");

in line 137 causes an (uncontrolled) interrupt.

After commenting this line out, the problem disappeared.

I think this problem will affect several unix dialects.

I'm not a specialist in programming user-kernel process communications,
so I don't know whether I opened some holes.
Can anybody tell me something? 

At Last a hint:
There will be a ADMCHG flag in /etc/security/passwd if root changes a
password of a user.
This causes the user to change his password when he logs in.
My personal solution to circumvent this annoying feature is by adding
the lines

	#ifdef AIX
        	pstrcat(passwordprogram,"; pwdadm -c ");
	        pstrcat(passwordprogram,name);
	#endif

to the source code. The shell command "pwdadm -c" removes all (!!) flags
for the user in
/etc/security/passwd.

Sorry for putting this mail to this place, but I don't know where the
best place is for it.
ciao 
Ralph


More information about the samba-ntdom mailing list