Author Topic: Passwort - Änderung mit LDAP  (Read 5453 times)

Offline newbie200

  • Newbie
  • *
  • Posts: 2
Passwort - Änderung mit LDAP
« on: December 06, 2010, 06:04:59 AM »
Hallo,

ich bin schon eine Weile am rumprobieren oder Suchen nach einer Lösung für mein Problem
Ich möchte gern im RC, dass die Benutzer ihr AD Passwort ändern können, aber ich bekomme es einfach nicht hin: Fehlermeldung: connect error
Ich finde auch keine Beispiele für eine solche Anbindung.
Vielleicht kann mir jemand hier weiterhelfen.

Folgende Konstellation habe ich:

Domaincontroller: DC01 (W2K8 R2)
Domain: local.netz
IMAP-Server: hmail ( Benutzer nutzen aber ihr AD Konto)
Webfrontend: RC 0.4.2
Datenbanken für RC und hmail liegen auf SQLExpress 2008
Plugin: password ist aktiviert und ich möchte "simple_ldap" für die kennwortänderung benutzen

Es funktioniert alles soweit, nur ich bekomme die PW-Änderung zum AD nicht

Hier meine config:


// Password Plugin options
// -----------------------
// A driver to use for password change. Default: "sql".
// See README file for list of supported driver names.
$rcmail_config['password_driver'] = 'ldap_simple';

// Determine whether current password is required to change password.
// Default: false.
$rcmail_config['password_confirm_current'] = true;

// Require the new password to be a certain length.
// set to blank to allow passwords of any length
$rcmail_config['password_minimum_length'] = 6;

// Require the new password to contain a letter and punctuation character
// Change to false to remove this check.
$rcmail_config['password_require_nonalpha'] = false;


// LDAP and LDAP_SIMPLE Driver options
// -----------------------------------
// LDAP server name to connect to.
$rcmail_config['password_ldap_host'] = 'dc01.local.netz';

// LDAP server port to connect to
$rcmail_config['password_ldap_port'] = '389';

// TLS is started after connecting
$rcmail_config['password_ldap_starttls'] = false;

// LDAP version
// Default: '3'
$rcmail_config['password_ldap_version'] = '3';

// LDAP base name (root directory)
$rcmail_config['password_ldap_basedn'] = 'dc=local,dc=netz';

// LDAP connection method
$rcmail_config['password_ldap_method'] = 'user';

// LDAP Admin DN
$rcmail_config['password_ldap_adminDN'] = null;

// LDAP Admin Password
// $rcmail_config['password_ldap_adminPW'] = null;

// LDAP user DN mask
$rcmail_config['password_ldap_userDN_mask'] = 'uid=%login,ou=Webmailer,ou=Benutzer,dc=netz,dc=local';

- Hier liegen meine AD-Accounts, der Anmeldename sieht z.B so aus: test21@local.netz, wobei @local.netz abgeschnitten wurde, d.h.
im Webinterface gibt der Benutzer nur "test21" als Anmeldename ein.

// LDAP search DN
// $rcmail_config['password_ldap_searchDN'] = 'ou=Benutzer,dc=example,dc=com';

// LDAP search password
$rcmail_config['password_ldap_searchPW'] = 'secret';

// LDAP search base
$rcmail_config['password_ldap_search_base'] = 'ou=people,dc=example,dc=com';

// LDAP search filter
$rcmail_config['password_ldap_search_filter'] = '(uid=%login)';

// LDAP password hash type
// Default: 'crypt'
$rcmail_config['password_ldap_encodage'] = 'crypt';

// LDAP password attribute
$rcmail_config['password_ldap_pwattr'] = 'userPassword';

// LDAP password force replace
$rcmail_config['password_ldap_force_replace'] = true;


// chpasswd Driver options
$rcmail_config['password_chpasswd_cmd'] = 'sudo /usr/sbin/chpasswd 2> /dev/null';

Für Ideen wäre ich echt dankbar
« Last Edit: December 06, 2010, 06:49:57 AM by newbie200 »

Offline oldschool

  • Sr. Member
  • ****
  • Posts: 406
Passwort - Änderung mit LDAP
« Reply #1 on: December 06, 2010, 09:40:36 AM »
Hi!

Schon per Kommandozeile das Ganze "durchgespielt"?
Somit wäre RC erstmal nicht teiligt...


Rgds.

Offline newbie200

  • Newbie
  • *
  • Posts: 2
Passwort - Änderung mit LDAP
« Reply #2 on: December 06, 2010, 09:59:54 AM »
Was heist das?

Generell geht eine Passwordänderung für den Benutzer.
Mir fehlen höchstwahrscheinlich die korrekten Einträge in der config.php im Password-Plugin. Nur benutzt das anscheinend keiner so und ich finde auch keine Beispiele dafür

Ich brauche Hilfe mit den korrekten Einstellungen in der Config.