Issue #458 resolved

LDAP user forced to login twice when cloning repository

Anonymous created an issue

When cloning mercurial repository, LDAP (Active Directory) user is forced to enter his password twice. Cloning will finish successfully after entering the password second time.

Software: SCM manager 1.33 on tomcat 7 and Oracle java 7

Client logs: hg --debug --verbose clone --insecure http://username@mercurial:8080/scm/hg/testrepo using http://mercurial:8080/scm/hg/testrepo http auth: user username, password not set sending capabilities command http authorization required realm: SONIA :: SCM Manager user: username password: http auth: user username, password ** using http://mercurial:8080/scm/hg/testrepo http auth: user username, password not set sending capabilities command http authorization required realm: SONIA :: SCM Manager user: username password: http auth: user username, password * destination directory: testrepo query 1; heads sending batch command http auth: user username, password ** requesting all changes sending getbundle command http auth: user username, password * interrupted!

Comments (11)

  1. Sebastian Sdorra repo owner

    The log you've posted shows a ClientAbortException which could be an indicator for a network problem. It is possible that you test a clone on the same server which is running scm-manager, just to exclude the network problem?

  2. enn

    I tried to checkout from localhost. Sadly it made no difference:

    hg clone --insecure http://scmadmin@localhost:8080/scm/hg/pms

    http authorization required realm: SONIA :: SCM Manager user: scmadmin password: http authorization required realm: SONIA :: SCM Manager user: scmadmin password: destination directory: pms no changes found updating to branch default 0 files updated, 0 files merged, 0 files removed, 0 files unresolved

    Trace: http://pastebin.com/3JFM3sM0

  3. Sebastian Sdorra repo owner

    The log file does not show any problem, it look all good. Do you use a reverse proxy? Could you login as administrator and post the output of the following page:

    • /scm/api/rest/support
  4. enn

    For testing I bypassed reverse proxy.

    /scm/api/rest/support:

    SCM-Manager support information Information for SCM-Manager support.

    Version Version: 1.34 Stage: PRODUCTION StoreFactory: sonia.scm.store.JAXBStoreFactory Configuration Anonymous Access Enabled: false Enable Proxy: false Force Base Url: false Disable Grouping Grid: false Enable Repository Archive: false Installed Plugins sonia.scm.plugins:scm-auth-ldap-plugin:1.19 sonia.scm.plugins:scm-git-plugin:1.34 sonia.scm.plugins:scm-hg-plugin:1.34 sonia.scm.plugins:scm-jira-plugin:1.11 sonia.scm.plugins:scm-mail-plugin:1.3 sonia.scm.plugins:scm-activity-plugin:1.9 de.triology.scm.plugins.checkstyle:scm-checkstyle-plugin:1.0 sonia.scm.plugins:scm-pushlog-plugin:1.0 sonia.scm.plugins:scm-svn-plugin:1.34 sonia.scm.plugins:scm-archive-plugin:1.1 sonia.scm.plugins:scm-notify-plugin:1.3 Runtime Free Memory: 228049504 Total Memory: 254279680 Max Memory: 1037959168 Available Processors: 8 System OS: Linux Architecture: 64 ServletContainer: TOMCAT Java: Oracle Corporation/1.7.0_40 Local: en_US TimeZone: Europe/Tallinn Repository Handlers Mercurial/hg (unknown) Git/git (unknown) Subversion/svn (unknown)

  5. Sebastian Sdorra repo owner

    I tried to reproduce the error, but without success. I've installed tomcat and all plugins of your support file, but all commands work without problems. Have you increased the header buffer, as described here. Occurs the problem with every repository and with every repository type (hg, svn and git)?

  6. Log in to comment