#10 NIS account passwords not disabled when nsAccountLock is TRUE
Closed: Fixed None Opened 8 years ago by pvoborni.

This ticket is clone of [https://fedorahosted.org/freeipa/ticket/5480 FreeIPA #5480]

When the password algorithm is defined as CRYPT and NIS is used to authenticate users on other systems, there is no way to disable or lock accounts. Traditional convention has been to put two bang (exclamation) characters in front of the password, creating an impossible password hash. This effectively locks the user account, preventing authentication.

On line 55 of defs-nis.c, line 55 can have the following added to add a pair of bang characters in front of the password hash:

{{{
%ifeq("nsAccountLock","TRUE","!!","")
}}}

There may be a better place within the format to put that, but the syntax escapes me. Simply adding the above code in the password field before the %regsubi... would produce a !!* for locked accounts instead of just the * as it sits now. This may cause problems.


Login to comment on this ticket.

Metadata