LDAP Connectivity

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
rajinp
Posts: 2
Joined: 15 May 2007, 10:15

LDAP Connectivity

Post 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
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post 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
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
rajinp
Posts: 2
Joined: 15 May 2007, 10:15

Post by rajinp »

Thanks,

I will try these settings and try.Thanks for ur help.
smlp
Posts: 14
Joined: 09 Jan 2007, 11:10

Post 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?
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post 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 \-]+$/';
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
Post Reply