svn hooks not working after enabling ldap auth

Get help from other users here.

Moderators: Developer, Contributor

svn hooks not working after enabling ldap auth

Postby skeelime » Jun 21, 2012 9:37 am

mantis: 1.2.10
apache: 2.2.3
mysql: 5.0.95
php: 5.1.6

Hello,

We enabled LDAP auth by adding the following to config_inc.php:

$g_login_method = LDAP;
$g_ldap_server = ‘ldap://dc1.mydomain.local’;
$g_ldap_port = 389;
$g_ldap_root_dn = “OU=Users,DC=MYDOMAIN,DC=LOCAL”;
$g_ldap_bind_dn = ‘CN=ldapsearch,CN=Users,DC=MYDOMAIN,DC=LOCAL’; $g_ldap_bind_passwd = ‘Password123’;
$g_ldap_organization = ‘‘;
$g_ldap_protocol_version = 3;
$g_ldap_uid_field= ‘sAMAccountName’;

I then re-named user accounts to match the ones in Active directory. After this the user accounts all seemed to work fine but the svn hooks no longer worked and svn was not updating mantis. I think it is because the svn user in mantis has no password associated with it and I am unable to create a user in AD without a password.

Is their anyway to make mantis use the local DB for svn while going to LDAP for the rest?

Has anyone successfully got LDAP authentication working while still being able to use SVN hooks?
skeelime
 
Posts: 7
Joined: Jun 12, 2012 2:26 pm

Re: svn hooks not working after enabling ldap auth

Postby skeelime » Jun 26, 2012 12:01 pm

Any idea on this? Is this a functionality that is not supported?
skeelime
 
Posts: 7
Joined: Jun 12, 2012 2:26 pm

Re: svn hooks not working after enabling ldap auth

Postby skeelime » Jul 05, 2012 7:20 am

So I noticed that there is an option $g_source_control_account = 'svn'; in config_inc.php

Does anyone know of another configuration variable option to specify a password for this account like $g_source_control_account_password etc?
skeelime
 
Posts: 7
Joined: Jun 12, 2012 2:26 pm

Re: svn hooks not working after enabling ldap auth

Postby atrol » Jul 06, 2012 5:13 pm

I can't give you really good support because I don't use SVN and I don't use LDAP, but maybe using the new source integration plugin instead of using the old build in system (will be removed in version 1.3) helps
https://github.com/mantisbt-plugins/source-integration/

You can try also writing to the help mailing list http://www.mantisbt.org/mailinglists.php
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
 
Posts: 3632
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: svn hooks not working after enabling ldap auth

Postby skeelime » Jul 24, 2012 7:32 am

Hi Guys,

I found a fix for this. I temporarily assigned my email address to the svn account in mantis. I send myself a password reset email and set a password for the account. I then set the exact same password in active directory. The issue is now fixed.
skeelime
 
Posts: 7
Joined: Jun 12, 2012 2:26 pm


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron