Changed the way class.accounts_ldap.inc save the information on Openldap

hello friends, I use an openldap server wich iredmail solution, where users have a distinct name as follows:

dn: mail = giorgio@domain.tld, ou = Users, domainName = doimain.tld, o = domains, dc = domain, dc = tld
My systems work with this structure, when the egroupware modify any information on the User, the egroupware stores the information by modifying the old structure like this: ’

dn: uid=giorgio,ou=Users,domainName=doimain.tld,o=domains,dc=domain,dc=tld

My question is, how to modify the class.accounts_ldap.inc so that it saves the data as mail=user@domain.tld and not uid= user.
For more information read this topics witch pics of problemam
http://www.iredmail.org/forum/topic1636-integration-with-egroupware-18-comunity-problems.html
thx all
ps: sorry my english is soo bad

Hi,

that’s done in 2 places:

phpgwapi/inc/class.accounts_ldap.inc.php at line 200:

  • !$is_group && ($old[‘uid’] != $data_utf8[‘account_lid’] ||
    substr($old[‘dn’],0,4) != ‘uid=’))
  • !$is_group && ($old[‘uid’] != $data_utf8[‘account_lid’] /||
    substr($old[‘dn’],0,4) != ‘uid=’
    /))

addressbook/inc/class.addressbook_ldap.inc.php at line 461:

  • if(strtolower($dn) != strtolower($newDN) || $needRecreation)
  • if(/strtolower($dn) != strtolower($newDN) ||/ $needRecreation)

The line numbers are from Trunk, so they may differ a little for 1.8.

Ralf

hello friends, I use an openldap server wich iredmail solution, where
users have a distinct name as follows: dn: mail = giorgio@domain.tld, ou
= Users, domainName = doimain.tld, o = domains, dc = domain, dc = tld My
systems work with this structure, when the egroupware modify any
information on the User, the egroupware stores the information by
modifying the old structure like this: ’ dn:
uid=giorgio,ou=Users,domainName=doimain.tld,o=domains,dc=domain,dc=tld
My question is, how to modify the class.accounts_ldap.inc so that it
saves the data as mail=user@domain.tld and not uid= user. For more
information read this topics witch pics of problemam
http://www.iredmail.org/forum/topic1636-integration-with-egroupware-18-comunity-problems.html
thx all ps: sorry my english is soo bad

View this message in context: changed the way class.accounts_ldap.inc
save the information on Openldap
http://egroupware.219119.n3.nabble.com/changed-the-way-class-accounts-ldap-inc-save-the-information-on-Openldap-tp2464366p2464366.html
Sent from the egroupware-developers mailing list archive
http://egroupware.219119.n3.nabble.com/egroupware-developers-f278587.html
at Nabble.com.


The ultimate all-in-one performance toolkit: Intel® Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb


eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers

–
Ralf Becker
Director Software Development

Stylite GmbH
[open style of IT]

Morschheimer Strasse 15
67292 Kirchheimbolanden

fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de

www.stylite.de
www.egroupware.org


Geschäftsführer Andre Keller, Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951


The ultimate all-in-one performance toolkit: Intel® Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb


eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers

thank you so much ralph ! thats work ! thxxxxxxxxxxxxx ! :smiley: