gitlab: PAM authentication issues

I am using gitlab for a departmental git server for my university. We have an existing user base maintained by a different part of the organization. My IT admin would rather use PAM than straight LDAP to authenticate.

I got PAM working on Ubuntu 12.04, by replacing the unix_chkpwd binary. Right now it is through Omniauth. The logs show that it authenticates. I get a routing error after successful sign in.

  • How does Github detect mirrored repositories?
  • Why do checkout and reset change the index?
  • git - Track Linux Kernel .config file
  • How can I convert a Mercurial repository to Git…in *Windows*?
  • How to show long git output in separate buffer with less?
  • Git rev-list command gives different result on different time
  • ActionController::RoutingError (No route matches [POST] "/users/auth/pam/callback"):
    

    I am not sure how to go about fixing this.

    I would like devise to use PAM directly since all my users will be only through PAM, since the will have to have a university account. I am using the folowing gem https://github.com/jwilson511/devise_pam_authenticatable . I have it setup, but it does not seem to be attempting to login through PAM.

    Any help would be appreciated.

    EDIT:
    I have PAM configured right. The issue is with the routing error.

  • EOF error javascript_include_tag Rails 4
  • How to share a file between two repositories using Git & Bitbucket?
  • Problem with Hudson + Git + Gitosis on windows
  • github repos cloning, but no tags/branches recreated?
  • How do i add a command line prompt as the $EDITOR when committing in svn and git
  • How to apply gitignore afterwards?
  • 2 Solutions collect form web for “gitlab: PAM authentication issues”

    I found the solution. The gem needed to be setup to have a name option that gitlab will parse out correctly.

    The gem also needed to be set to add an email field to the info hash, such that a user will be created on first login.

    I will do some code cleanup and make a pull request.

    you can use the omniauth providers,

    for details on the omniauth providers see https://github.com/gitlabhq/gitlabhq/wiki/Using-Custom-Omniauth-Providers

    for an pam omniauth provider see https://github.com/nickcharlton/omniauth-pam

    Git Baby is a git and github fan, let's start git clone.