Автор: PEDKA
Дата сообщения: 13.03.2009 08:36
sarti
Можно, но я не проверял.
[more]Note that while this article describes LDAP specifically, the same general
methods apply to any login module. You can also create a custom login
module, upload it to /sources/loginauth/ and then add it to IP.Board via the
ACP - after which you can use IP.Board to authenticate against any custom
database.
To set Invision Power Board to authenticate against LDAP, there are a couple
of steps that must be taken. Firstly, you must ensure that PHP has been
compiled with LDAP support, as IP.Board utilizes these functions. In the ACP,
go to your Admin tab, click on "PHPINFO", and in the "Configure Command"
section at the top of the phpinfo output, verify that you see "--with-ldap". If
not, you will need to recompile PHP with LDAP support, which is beyond the
scope of our support capabilities. More information can be found here on the
PHP LDAP libraries and how to enable them.
If PHP has been compiled with LDAP support, download the
./sources/loginauth/ldap/conf.php file from your web server and configure the
directives. If you are unsure of the settings to place in this file, you should
contact your LDAP Admin to find out what settings will work best.
NOTE
A user using Win2K3 Active Directory has indicated the following settings should be
used to authenticate against your AD. You will, of course, need to make the
appropriate changes, but note username information will require 2 slashes.
<?php
// LDAP -- LDAP
$LOGIN_CONF = array();
$LOGIN_CONF['ldap_server'] = 'xxx.xxx.xxx.xxx'; //- IP Address of LDAP
Server
$LOGIN_CONF['ldap_port'] = '389';
$LOGIN_CONF['ldap_server_username'] = 'domain\\user'; //- make sure
you have the two
$LOGIN_CONF['ldap_server_password'] = 'password';
$LOGIN_CONF['ldap_uid_field'] = 'sAMAccountName';
$LOGIN_CONF['ldap_base_dn'] = 'dc=domain,dc=com'; //- if your
domain name is "domain.com"
$LOGIN_CONF['ldap_server_version'] = 3;
$LOGIN_CONF['ldap_username_suffix'] = '';
$LOGIN_CONF['ldap_user_requires_pass'] = 1;
?>
Afterwards, upload the (modified) file back to your server in the same folder
(./sources/loginauth/ldap/) and login to your IP.Board ACP. Visit "Tools &
Settings", and click on "Login Manager" in the left hand menu. Click on the
button for the LDAP Authentication row, and click "Edit Details".[/more]