Skip to content

Fetch real name via posix_getpwnam #2

@devurandom

Description

@devurandom

It would be great if libphremoteuser could optionally fetch the real name from the system, via posix_getpwnam(string $username) (field gecos).

The administrator would have to choose how to interpret that string, since it is not well defined. But you could interpret it as surname, given name by default, which seems to be common these days.

To allow for this, you might need to extract the actual username from the REMOTE_USER string. In case of Kerberos authentication this is usually username@MYDOMAIN. Simple string matching should suffice.

And when you are at it, you can even generate a default for the email address from this, by letting the administrator define a default domain, and then just concatenating username@default-domain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions