Page 1 of 1
LDAP Connectivity
Posted: 31 May 2007, 06:52
by rajinp
Hi,
Can anyone provide me the code for the connectivity of Mantis with the LDAP, so that we can authenticate the users by connecting to LDAP.
Thanks in advance.
Rajin
Posted: 31 May 2007, 07:48
by deboutv
There is no code, just configuration variables to set (in the config_inc.php file) :
Code: Select all
#############################
# Mantis LDAP Settings
#############################
# look in README.LDAP for details
# --- using openldap -------------
$g_ldap_server = 'ldaps://ldap.example.com.au/';
$g_ldap_port = '636';
$g_ldap_root_dn = 'dc=example,dc=com,dc=au';
$g_ldap_organization = ''; # e.g. '(organizationname=*Traffic)'
$g_ldap_uid_field = 'uid'; # Use 'sAMAccountName' for Active Directory
$g_ldap_bind_dn = '';
$g_ldap_bind_passwd = '';
$g_use_ldap_email = OFF; # Should we send to the LDAP email address or what MySql tells us
Posted: 04 Jun 2007, 04:24
by rajinp
Thanks,
I will try these settings and try.Thanks for ur help.
Posted: 05 Jun 2007, 07:44
by smlp
Tried this, but unfortunately the login in LDAP is something like jack.baur but AFAIK you cannot create users in Mantis with a dot as a seperator.

Someone knows why this restriction was made?
Posted: 05 Jun 2007, 07:54
by deboutv
smlp wrote:Tried this, but unfortunately the login in LDAP is something like jack.baur but AFAIK you cannot create users in Mantis with a dot as a seperator.

Someone knows why this restriction was made?
You can change the default settings (in the config_inc.php file):
Code: Select all
# The regular expression to use when validating new user login names
# The default regular expression allows a-z, A-z, 0-9, as well as space and
# underscore. If you change this, you may want to update the
# ERROR_USER_NAME_INVALID string in the language files to explain
# the rules you are using on your site
$g_user_login_valid_regex = '/^[\w \-]+$/';