NIS authentication backend.
Authenticate against a user on an NIS server.
login_instructions= u'Use your standard NIS username and password.'¶
authenticate(request, username, password, **kwargs)¶
Authenticate the user.
This will attempt to authenticate the user against NIS. If the username and password are valid, a user will be returned, and added to the database if it doesn’t already exist.
Changed in version 4.0: The
requestargument is now mandatory as the first positional argument, as per requirements in Django.
The authenticated user, or
Noneif the user could not be authenticated.
get_or_create_user(username, request=None, passwd=None)¶
Return an existing user, or create one if it does not exist.
The existing or newly-created user, or
Noneif an error was encountered.