Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makes local user information optional. #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

busbey
Copy link

@busbey busbey commented May 19, 2015

  • Changes PAM.authenticate to return a generic AuthenticatedUser.
    ** Uses UnixUser.exists instead of manually checking libc.passwd, then returns either
    a UnixUser or a generic AuthenticatedUser.
    ** Non-backwards compatible because of the method signature change on PAM.authenticate.
  • Changes UnixUser to be a subclass of the generic AuthenticatedUser.

Fixes #2

* Changes PAM.authenticate to return a generic AuthenticatedUser.
** Uses UnixUser.exists instead of manually checking libc.passwd, then returns either
   a UnixUser or a generic AuthenticatedUser.
** Non-backwards compatible because of the method signature change on PAM.authenticate.
* Changes UnixUser to be a subclass of the generic AuthenticatedUser.

Fixes kohsuke#2
@eskatos
Copy link

eskatos commented May 22, 2015

👍 Needed for LDAP/Radius/Whatever external authentication sources.

@eskatos
Copy link

eskatos commented Jun 25, 2015

@kohsuke any chance for this to get into libpam4j?

@kohsuke
Copy link
Owner

kohsuke commented Mar 2, 2016

My apologies for ignoring this for too long. It just went below my radar.

I'd like to massage the change to be backward compatible. I think we can do it by using bridge method injector

@busbey
Copy link
Author

busbey commented Mar 2, 2016

no worries, I know what it's like maintaining open source software.

I think I can swing that change some time next week. Have a timeline for a new release in mind?

/*
* The MIT License
*
* Copyright (c) 2009, Sun Microsystems, Inc.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I presume this is incorrect, since this class was not made in 2009 by Sun though it looks like it's primarily pulled from UnixUser, which was.

Suggestions on what I should update it to while I'm changing things?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Authentication fails for users not available via libc
3 participants