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

The base path problem on integrating omniauth-ldap #32

Closed
njman opened this issue Jun 4, 2015 · 1 comment
Closed

The base path problem on integrating omniauth-ldap #32

njman opened this issue Jun 4, 2015 · 1 comment

Comments

@njman
Copy link

njman commented Jun 4, 2015

There was an issue when integrating omniauth-ldap, please check its issue.

Not sure whether the root cause is on omnigollum or not, Just copy that as following:

I want wiki sub-directory, e.g. http://localhost:4567/wiki/Home, /wiki/ is the sub-directory.

Gollum support --base-path option in Rack way, please check the wiki tips.
The omnigollum support it by the pull.
However, omniauth-ldap has Sign In problem, i.e. always return to Home page once submit.
Look around the LDAP Authentication html source:

      <body>
      <h1>LDAP Authentication</h1>
      <form method='post' action='/__omnigollum__/auth/ldap/callback' noValidate='noValidate'>

<label for='username'>Login:</label>
<input type='text' id='username' name='username'/>
<label for='password'>Password:</label>
<input type='password' id='password' name='password'/>
<button type='submit'>Sign In</button>      </form>
      </body>

I doubted on this line:

action='/__omnigollum__/auth/ldap/callback'

should write:

action='/wiki/__omnigollum__/auth/ldap/callback'

Not sure. How to resolve this problem, thanks.

Sorry for the duplicating.

@njman
Copy link
Author

njman commented Jun 8, 2015

closed.

@njman njman closed this as completed Jun 8, 2015
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

No branches or pull requests

1 participant