Jump to content


P4DTG with LDAP failing

dtg ldap

  • Please log in to reply
5 replies to this topic

#1 shezq23

shezq23

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 28 May 2015 - 07:41 PM

Hi,
Trying to evaluate Perforce and DTG for our setup here and we're running into problems when using LDAP.

We have LDAP working for P4V and can perform any P4 command working as necessary, but when we try to configure the Defect Tracking Gateway with a standard user using perforce authentication it doesn't work. Specifically the perforce service setup screen refuses to connect with a P4PASSWD error (Redmine setup works fine). Interestingly, if we leave password screen blank then the dialog seems to allow us to start the replication service, but the service itself fails with a password error as shown in the log. For the record, if we turn LDAP authentication off, DTG works fine, however, LDAP authentication is a requirement. We are using security level 2. For some reason we ran into issues when using ticket-based authentication when using LDAP.

We're running the latest versions of P4, P4V and DTG (downloaded a week ago).

Any help would be appreciated.

#2 P4Shimada

P4Shimada

    Advanced Member

  • Members
  • PipPipPip
  • 831 posts

Posted 28 May 2015 - 08:02 PM

Hello,

When using an external authentication manager such as LDAP or Active Directory, the security configurable is moot. The server either behaves with your security setting, or is completely under the control of the external authentication system implemented. See the 'NOTE' under 'Server security levels' in our Admin Guide:

    http://www.perforce.....superuser.html

What were the exact errors that you received?

#3 shezq23

shezq23

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 28 May 2015 - 08:46 PM

I will be referencing this dialog on your setup guide, which is the perforce server source setup dialog. We are using Windows.
http://www.perforce....ll.html#1048744

First, we created a new user using P4Admin called 'perforce' with a generic password. The AuthType for this user is set to 'perforce', unlike our other users which is set to 'ldap'.

Next, we filled in the fields as required in the perforce server source setup dialog, but when checking the connection we get a "Unable to connect to server [UsageError] Perforce password (P4PASSWD) invalid or unset". We have checked the password many times since it is plain text and ensured that it is correct.

To get past this screen, we open up a shell and use 'p4 -u perforce login' to log the user in. After this, if we make the password field blank in the dialog then the Check Connection tab works fine, and we can start the replication service in the mapping tab. However, the logs show this error "Error for check_connection: [UsageError] Perforce password (P4PASSWD) invalid or unset".

If we turn LDAP off in perforce there are no issues. We have even tried using another LDAP user that we have logged into previously to no avail.

Please advise.

#4 P4Shimada

P4Shimada

    Advanced Member

  • Members
  • PipPipPip
  • 831 posts

Posted 28 May 2015 - 09:11 PM

Hi,

Thank you for the additional details with the error messages and your steps. The issue could be due to where your tickets are located on Windows. Have you checked your setup and configuration against this article here? 'P4DTG and Perforce Tickets':

http://answers.perfo...rticles/KB/3932

See 'Ticket file location on Windows'.

We use LDAP and P4DTG here internally at Perforce so they definitely work. If it were an LDAP issue, you would not be able to log in at all, most likely. The security and tickets setup is where the culprit likely is.

Please let us know how you get on with this.

#5 shezq23

shezq23

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 02 June 2015 - 08:56 PM

Thanks P4Shimada, this seems to do the trick!

#6 P4Shimada

P4Shimada

    Advanced Member

  • Members
  • PipPipPip
  • 831 posts

Posted 02 June 2015 - 09:04 PM

You're welcome! Glad it worked. Thanks for the update.





Also tagged with one or more of these keywords: dtg, ldap

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users