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
LDAP Connectivity
Moderators: Developer, Contributor
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
=> http://deboutv.free.fr/mantis/
Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
You can change the default settings (in the config_inc.php file):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?
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
=> http://deboutv.free.fr/mantis/
Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux