[SSSD] [PATCH] Fall back to cn if gecos is not available
Jan Zelený
jzeleny at redhat.com
Wed Mar 30 08:47:23 UTC 2011
Stephen Gallagher <sgallagh at redhat.com> wrote:
> We were not fully compliant with section 5.3 of RFC 2307 which
> states:
>
> An account's GECOS field is preferably determined by a value of the
> gecos attribute. If no gecos attribute exists, the value of the cn
> attribute MUST be used. (The existence of the gecos attribute allows
> information embedded in the GECOS field, such as a user's telephone
> number, to be returned to the client without overloading the cn
> attribute. It also accommodates directories where the common name
> does not contain the user's full name.)
>
>
> Fixes https://fedorahosted.org/sssd/ticket/703
Ack, just one little nitpick: line
+ if (el->num_values == 0) gecos = NULL;
is redundant.
Jan
More information about the sssd-devel
mailing list