<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.open-xchange.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Floeschie</id>
	<title>Open-Xchange - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.open-xchange.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Floeschie"/>
	<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=Special:Contributions/Floeschie"/>
	<updated>2026-11-11T10:42:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=OXLDAPSync_Guide&amp;diff=3466</id>
		<title>OXLDAPSync Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=OXLDAPSync_Guide&amp;diff=3466"/>
		<updated>2009-04-03T05:11:54Z</updated>

		<summary type="html">&lt;p&gt;Floeschie: /* Special chars scrambled */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= How to install OX LDAP Sync =&lt;br /&gt;
&lt;br /&gt;
== Debian ==&lt;br /&gt;
&lt;br /&gt;
Add the following entry to /etc/apt/sources.list:&lt;br /&gt;
&lt;br /&gt;
 deb http://software.open-xchange.com/OX6/unsupported/repo/DebianEtch/ /&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install oxldapsync&lt;br /&gt;
&lt;br /&gt;
== SLES10 ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important: Some of the dependencies require SLES10 SDK&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Run the following commands:&lt;br /&gt;
&lt;br /&gt;
 $ zypper sa http://software.open-xchange.com/OX6/unsupported/repo/SLES10 UNSUPPORTED&lt;br /&gt;
 $ zypper install oxldapsync&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= How to run OX LDAP Sync =&lt;br /&gt;
&lt;br /&gt;
With OX LDAP Sync you can sync user and group objects from a LDAP compatible&lt;br /&gt;
directory with Open-Xchange. When you modify or add an user to your&lt;br /&gt;
ldap directory oxldapsync will also modify or add the user to Open-Xchange.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
# An LDAP-server (currently openldap and ADS are supported)&lt;br /&gt;
# You need one user distinguished name who at least can search and            read user objects. If you decide to synchronize groups, the ldap user needs to search and read these objects, too.&lt;br /&gt;
# If you want to synchronize groups you need to know if the           membership to the group is defined by the userid or by the           complete distinguished name of the user.&lt;br /&gt;
# User attributes you want to sync with Open-Xchange&lt;br /&gt;
# Open-Xchange must authenticate against the LDAP server instead of the database, which is the default. In order to achieve that, deinstall package &amp;lt;tt&amp;gt;open-xchange-authentication-database&amp;lt;/tt&amp;gt; and install &amp;lt;tt&amp;gt;open-xchange-authentication-ldap&amp;lt;/tt&amp;gt; and configure it accordingly in changing /opt/open-xchange/etc/groupware/ldap.properties. As an alternative, &amp;lt;tt&amp;gt;open-xchange-authentication-imap&amp;lt;/tt&amp;gt; could be used, if your IMAP server authenticates against your LDAP server.&lt;br /&gt;
&lt;br /&gt;
== configuring OX LDAP Sync ==&lt;br /&gt;
&lt;br /&gt;
After installing OXSync you will find the configuration files under&lt;br /&gt;
/opt/oxldapsync/etc. You can use the example configuration files&lt;br /&gt;
ldapsync.conf (openldap) and ldapsyn-ads.conf (Active Directory) as&lt;br /&gt;
starting point.&lt;br /&gt;
&lt;br /&gt;
=== OpenLDAP ===&lt;br /&gt;
&lt;br /&gt;
Open ldapsync in your favourite text editor change following options to your needs:&lt;br /&gt;
&lt;br /&gt;
                ldapuri                     with dns-name or ip of your&lt;br /&gt;
                                            LDAP-Server&lt;br /&gt;
                userbasedn                  distinguished name under which the&lt;br /&gt;
                                            script will find user objects&lt;br /&gt;
                groupbasedn                 distinguished name under which the&lt;br /&gt;
                                            script will find group objects&lt;br /&gt;
                ldaptype                    type of ldap in this case openldap&lt;br /&gt;
                ldapuserdn                  distinguished name of the user&lt;br /&gt;
                                            which will be used to query the&lt;br /&gt;
                                            directory&lt;br /&gt;
                ldapuserpassword            password for the ldapuser&lt;br /&gt;
                mappingfile                 absolute path to your ldap&lt;br /&gt;
                                            attribute -&amp;gt; ox attribute mapping&lt;br /&gt;
                updategroups                &amp;quot;yes&amp;quot; if you want to also sync&lt;br /&gt;
                                            groups with ox&lt;br /&gt;
                updateAlias                 shall mail aliases of a user get&lt;br /&gt;
                                            updated with the one from the ldap.&lt;br /&gt;
                                            In case you can name only one&lt;br /&gt;
                                            mailaddress on your directory, say&lt;br /&gt;
                                            no here and you can manually add&lt;br /&gt;
                                            further mailaddresses in ox. They&lt;br /&gt;
                                            will not get deleted by the&lt;br /&gt;
                                            synctool.&lt;br /&gt;
                usemodifytimestamp          set to yes, to update only users&lt;br /&gt;
                                            since last run&lt;br /&gt;
                userfilter                  searchfilter to find user objects,&lt;br /&gt;
                                            internal default&lt;br /&gt;
                                            &amp;quot;(objectClass=inetOrgPerson)&amp;quot;&lt;br /&gt;
                groupfilter                 searchfilter to find group objects,&lt;br /&gt;
                                            internal default&lt;br /&gt;
                                            &amp;quot;(objectClass=posixGroup)&amp;quot;&lt;br /&gt;
                deleteusers                 Say yes if you want to delete users&lt;br /&gt;
                                            in ox which are not in your&lt;br /&gt;
                                            directory and are not named by the&lt;br /&gt;
                                            &amp;quot;dontModifyUids&amp;quot; option&lt;br /&gt;
                deletegroups                say yes to delete empty and non&lt;br /&gt;
                                            existing groups in ldap in ox&lt;br /&gt;
                dontModifyUids              list of comma separeted uid&#039;s which&lt;br /&gt;
                                            shall not be modified by the sync&lt;br /&gt;
                                            script. You should note at least&lt;br /&gt;
                                            the contextadmin&lt;br /&gt;
                groupMemberAttribute        name of attribute which holds the&lt;br /&gt;
                                            members in a group object&lt;br /&gt;
                memberAttributeIsDN         say yes if groupMemberAttribute is&lt;br /&gt;
                                            a distinguished name&lt;br /&gt;
                groupDisplayNameAttribute   displayname attribute for group&lt;br /&gt;
                groupNumberAttribute        unique number attribute for group&lt;br /&gt;
                userPrimaryGroupAttribute   attribute name where a users primary&lt;br /&gt;
                                            is stored&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the mapping file you will find ox options to create or modify users. The name on the left side of the equal sign is the name for the ox options. On the right side you name the ldap attribute name for this option. You can also give static values by enclosing them with qoutes.&lt;br /&gt;
&lt;br /&gt;
=== Active Directory ===&lt;br /&gt;
&lt;br /&gt;
For active directory synchronization just modify at least ldapuri, userbasedn, groupbasedn, ldapuserdn and ldapuserpassword.&lt;br /&gt;
&lt;br /&gt;
To run the script type&lt;br /&gt;
&lt;br /&gt;
 $ /opt/oxldapsync/sbin/oxldapsync.pl -f &amp;lt;CONFIG FILENAME&amp;gt; \&lt;br /&gt;
                                    -A &amp;lt;CONTEXT ADMIN USERNAME&amp;gt; \&lt;br /&gt;
                                    -P &amp;lt;CONTEXT ADMIN PASSWORD&amp;gt; \&lt;br /&gt;
                                    -c &amp;lt;CONTEXTID&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additional parameters are:&lt;br /&gt;
&lt;br /&gt;
                        -h       help message&lt;br /&gt;
                        -n       don&#039;t save last user search time&lt;br /&gt;
                        -v       Verbose mode&lt;br /&gt;
                        -s       print messages to stdout&lt;br /&gt;
&lt;br /&gt;
To run this program regularly just create a cronjob&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
== Special chars scrambled ==&lt;br /&gt;
If you run OX LDAP Sync via Cronjob an the umlauts (ä,ö,ü,...) of your entries in the &amp;quot;Global Addressbook&amp;quot; are scrambled, try setting the LANG environment variable in your crontab, e. g. German UTF-8 users should set this to something like this:&lt;br /&gt;
&lt;br /&gt;
 LANG=de_DE.UTF-8&lt;br /&gt;
 #m      h       dom     mon     dow     command&lt;br /&gt;
 0       23      *       *       Sun     /path/to/oxldapsync.pl&lt;br /&gt;
&lt;br /&gt;
For more information on using the crontab please visit [http://tldp.org/LDP/LGNET/151/prestia.html this howto at The Linux Documentation Project].&lt;/div&gt;</summary>
		<author><name>Floeschie</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=OXLDAPSync_Guide&amp;diff=3465</id>
		<title>OXLDAPSync Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=OXLDAPSync_Guide&amp;diff=3465"/>
		<updated>2009-04-03T05:11:20Z</updated>

		<summary type="html">&lt;p&gt;Floeschie: /* Special chars scrambled */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= How to install OX LDAP Sync =&lt;br /&gt;
&lt;br /&gt;
== Debian ==&lt;br /&gt;
&lt;br /&gt;
Add the following entry to /etc/apt/sources.list:&lt;br /&gt;
&lt;br /&gt;
 deb http://software.open-xchange.com/OX6/unsupported/repo/DebianEtch/ /&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install oxldapsync&lt;br /&gt;
&lt;br /&gt;
== SLES10 ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important: Some of the dependencies require SLES10 SDK&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Run the following commands:&lt;br /&gt;
&lt;br /&gt;
 $ zypper sa http://software.open-xchange.com/OX6/unsupported/repo/SLES10 UNSUPPORTED&lt;br /&gt;
 $ zypper install oxldapsync&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= How to run OX LDAP Sync =&lt;br /&gt;
&lt;br /&gt;
With OX LDAP Sync you can sync user and group objects from a LDAP compatible&lt;br /&gt;
directory with Open-Xchange. When you modify or add an user to your&lt;br /&gt;
ldap directory oxldapsync will also modify or add the user to Open-Xchange.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
# An LDAP-server (currently openldap and ADS are supported)&lt;br /&gt;
# You need one user distinguished name who at least can search and            read user objects. If you decide to synchronize groups, the ldap user needs to search and read these objects, too.&lt;br /&gt;
# If you want to synchronize groups you need to know if the           membership to the group is defined by the userid or by the           complete distinguished name of the user.&lt;br /&gt;
# User attributes you want to sync with Open-Xchange&lt;br /&gt;
# Open-Xchange must authenticate against the LDAP server instead of the database, which is the default. In order to achieve that, deinstall package &amp;lt;tt&amp;gt;open-xchange-authentication-database&amp;lt;/tt&amp;gt; and install &amp;lt;tt&amp;gt;open-xchange-authentication-ldap&amp;lt;/tt&amp;gt; and configure it accordingly in changing /opt/open-xchange/etc/groupware/ldap.properties. As an alternative, &amp;lt;tt&amp;gt;open-xchange-authentication-imap&amp;lt;/tt&amp;gt; could be used, if your IMAP server authenticates against your LDAP server.&lt;br /&gt;
&lt;br /&gt;
== configuring OX LDAP Sync ==&lt;br /&gt;
&lt;br /&gt;
After installing OXSync you will find the configuration files under&lt;br /&gt;
/opt/oxldapsync/etc. You can use the example configuration files&lt;br /&gt;
ldapsync.conf (openldap) and ldapsyn-ads.conf (Active Directory) as&lt;br /&gt;
starting point.&lt;br /&gt;
&lt;br /&gt;
=== OpenLDAP ===&lt;br /&gt;
&lt;br /&gt;
Open ldapsync in your favourite text editor change following options to your needs:&lt;br /&gt;
&lt;br /&gt;
                ldapuri                     with dns-name or ip of your&lt;br /&gt;
                                            LDAP-Server&lt;br /&gt;
                userbasedn                  distinguished name under which the&lt;br /&gt;
                                            script will find user objects&lt;br /&gt;
                groupbasedn                 distinguished name under which the&lt;br /&gt;
                                            script will find group objects&lt;br /&gt;
                ldaptype                    type of ldap in this case openldap&lt;br /&gt;
                ldapuserdn                  distinguished name of the user&lt;br /&gt;
                                            which will be used to query the&lt;br /&gt;
                                            directory&lt;br /&gt;
                ldapuserpassword            password for the ldapuser&lt;br /&gt;
                mappingfile                 absolute path to your ldap&lt;br /&gt;
                                            attribute -&amp;gt; ox attribute mapping&lt;br /&gt;
                updategroups                &amp;quot;yes&amp;quot; if you want to also sync&lt;br /&gt;
                                            groups with ox&lt;br /&gt;
                updateAlias                 shall mail aliases of a user get&lt;br /&gt;
                                            updated with the one from the ldap.&lt;br /&gt;
                                            In case you can name only one&lt;br /&gt;
                                            mailaddress on your directory, say&lt;br /&gt;
                                            no here and you can manually add&lt;br /&gt;
                                            further mailaddresses in ox. They&lt;br /&gt;
                                            will not get deleted by the&lt;br /&gt;
                                            synctool.&lt;br /&gt;
                usemodifytimestamp          set to yes, to update only users&lt;br /&gt;
                                            since last run&lt;br /&gt;
                userfilter                  searchfilter to find user objects,&lt;br /&gt;
                                            internal default&lt;br /&gt;
                                            &amp;quot;(objectClass=inetOrgPerson)&amp;quot;&lt;br /&gt;
                groupfilter                 searchfilter to find group objects,&lt;br /&gt;
                                            internal default&lt;br /&gt;
                                            &amp;quot;(objectClass=posixGroup)&amp;quot;&lt;br /&gt;
                deleteusers                 Say yes if you want to delete users&lt;br /&gt;
                                            in ox which are not in your&lt;br /&gt;
                                            directory and are not named by the&lt;br /&gt;
                                            &amp;quot;dontModifyUids&amp;quot; option&lt;br /&gt;
                deletegroups                say yes to delete empty and non&lt;br /&gt;
                                            existing groups in ldap in ox&lt;br /&gt;
                dontModifyUids              list of comma separeted uid&#039;s which&lt;br /&gt;
                                            shall not be modified by the sync&lt;br /&gt;
                                            script. You should note at least&lt;br /&gt;
                                            the contextadmin&lt;br /&gt;
                groupMemberAttribute        name of attribute which holds the&lt;br /&gt;
                                            members in a group object&lt;br /&gt;
                memberAttributeIsDN         say yes if groupMemberAttribute is&lt;br /&gt;
                                            a distinguished name&lt;br /&gt;
                groupDisplayNameAttribute   displayname attribute for group&lt;br /&gt;
                groupNumberAttribute        unique number attribute for group&lt;br /&gt;
                userPrimaryGroupAttribute   attribute name where a users primary&lt;br /&gt;
                                            is stored&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the mapping file you will find ox options to create or modify users. The name on the left side of the equal sign is the name for the ox options. On the right side you name the ldap attribute name for this option. You can also give static values by enclosing them with qoutes.&lt;br /&gt;
&lt;br /&gt;
=== Active Directory ===&lt;br /&gt;
&lt;br /&gt;
For active directory synchronization just modify at least ldapuri, userbasedn, groupbasedn, ldapuserdn and ldapuserpassword.&lt;br /&gt;
&lt;br /&gt;
To run the script type&lt;br /&gt;
&lt;br /&gt;
 $ /opt/oxldapsync/sbin/oxldapsync.pl -f &amp;lt;CONFIG FILENAME&amp;gt; \&lt;br /&gt;
                                    -A &amp;lt;CONTEXT ADMIN USERNAME&amp;gt; \&lt;br /&gt;
                                    -P &amp;lt;CONTEXT ADMIN PASSWORD&amp;gt; \&lt;br /&gt;
                                    -c &amp;lt;CONTEXTID&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additional parameters are:&lt;br /&gt;
&lt;br /&gt;
                        -h       help message&lt;br /&gt;
                        -n       don&#039;t save last user search time&lt;br /&gt;
                        -v       Verbose mode&lt;br /&gt;
                        -s       print messages to stdout&lt;br /&gt;
&lt;br /&gt;
To run this program regularly just create a cronjob&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
== Special chars scrambled ==&lt;br /&gt;
If you run OX LDAP Sync via Cronjob an the umlauts (ä,ö,ü,...) of your entries in the &amp;quot;Global Addressbook&amp;quot; are scrambled, try setting the LANG environment variable in your crontab, e. g. German UTF-8 users should set this to something like this:&lt;br /&gt;
&lt;br /&gt;
 LANG=de_DE.UTF-8&lt;br /&gt;
 #m      h       dom     mon     dow     command&lt;br /&gt;
 0       23      *       *       Sun     /path/to/oxldapsync.pl&lt;br /&gt;
&lt;br /&gt;
For more information on how to use the crontab please [http://tldp.org/LDP/LGNET/151/prestia.html this howto at The Linux Documentation Project].&lt;/div&gt;</summary>
		<author><name>Floeschie</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=OXLDAPSync_Guide&amp;diff=3464</id>
		<title>OXLDAPSync Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=OXLDAPSync_Guide&amp;diff=3464"/>
		<updated>2009-04-03T05:11:06Z</updated>

		<summary type="html">&lt;p&gt;Floeschie: /* Special chars scrambled */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= How to install OX LDAP Sync =&lt;br /&gt;
&lt;br /&gt;
== Debian ==&lt;br /&gt;
&lt;br /&gt;
Add the following entry to /etc/apt/sources.list:&lt;br /&gt;
&lt;br /&gt;
 deb http://software.open-xchange.com/OX6/unsupported/repo/DebianEtch/ /&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install oxldapsync&lt;br /&gt;
&lt;br /&gt;
== SLES10 ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important: Some of the dependencies require SLES10 SDK&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Run the following commands:&lt;br /&gt;
&lt;br /&gt;
 $ zypper sa http://software.open-xchange.com/OX6/unsupported/repo/SLES10 UNSUPPORTED&lt;br /&gt;
 $ zypper install oxldapsync&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= How to run OX LDAP Sync =&lt;br /&gt;
&lt;br /&gt;
With OX LDAP Sync you can sync user and group objects from a LDAP compatible&lt;br /&gt;
directory with Open-Xchange. When you modify or add an user to your&lt;br /&gt;
ldap directory oxldapsync will also modify or add the user to Open-Xchange.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
# An LDAP-server (currently openldap and ADS are supported)&lt;br /&gt;
# You need one user distinguished name who at least can search and            read user objects. If you decide to synchronize groups, the ldap user needs to search and read these objects, too.&lt;br /&gt;
# If you want to synchronize groups you need to know if the           membership to the group is defined by the userid or by the           complete distinguished name of the user.&lt;br /&gt;
# User attributes you want to sync with Open-Xchange&lt;br /&gt;
# Open-Xchange must authenticate against the LDAP server instead of the database, which is the default. In order to achieve that, deinstall package &amp;lt;tt&amp;gt;open-xchange-authentication-database&amp;lt;/tt&amp;gt; and install &amp;lt;tt&amp;gt;open-xchange-authentication-ldap&amp;lt;/tt&amp;gt; and configure it accordingly in changing /opt/open-xchange/etc/groupware/ldap.properties. As an alternative, &amp;lt;tt&amp;gt;open-xchange-authentication-imap&amp;lt;/tt&amp;gt; could be used, if your IMAP server authenticates against your LDAP server.&lt;br /&gt;
&lt;br /&gt;
== configuring OX LDAP Sync ==&lt;br /&gt;
&lt;br /&gt;
After installing OXSync you will find the configuration files under&lt;br /&gt;
/opt/oxldapsync/etc. You can use the example configuration files&lt;br /&gt;
ldapsync.conf (openldap) and ldapsyn-ads.conf (Active Directory) as&lt;br /&gt;
starting point.&lt;br /&gt;
&lt;br /&gt;
=== OpenLDAP ===&lt;br /&gt;
&lt;br /&gt;
Open ldapsync in your favourite text editor change following options to your needs:&lt;br /&gt;
&lt;br /&gt;
                ldapuri                     with dns-name or ip of your&lt;br /&gt;
                                            LDAP-Server&lt;br /&gt;
                userbasedn                  distinguished name under which the&lt;br /&gt;
                                            script will find user objects&lt;br /&gt;
                groupbasedn                 distinguished name under which the&lt;br /&gt;
                                            script will find group objects&lt;br /&gt;
                ldaptype                    type of ldap in this case openldap&lt;br /&gt;
                ldapuserdn                  distinguished name of the user&lt;br /&gt;
                                            which will be used to query the&lt;br /&gt;
                                            directory&lt;br /&gt;
                ldapuserpassword            password for the ldapuser&lt;br /&gt;
                mappingfile                 absolute path to your ldap&lt;br /&gt;
                                            attribute -&amp;gt; ox attribute mapping&lt;br /&gt;
                updategroups                &amp;quot;yes&amp;quot; if you want to also sync&lt;br /&gt;
                                            groups with ox&lt;br /&gt;
                updateAlias                 shall mail aliases of a user get&lt;br /&gt;
                                            updated with the one from the ldap.&lt;br /&gt;
                                            In case you can name only one&lt;br /&gt;
                                            mailaddress on your directory, say&lt;br /&gt;
                                            no here and you can manually add&lt;br /&gt;
                                            further mailaddresses in ox. They&lt;br /&gt;
                                            will not get deleted by the&lt;br /&gt;
                                            synctool.&lt;br /&gt;
                usemodifytimestamp          set to yes, to update only users&lt;br /&gt;
                                            since last run&lt;br /&gt;
                userfilter                  searchfilter to find user objects,&lt;br /&gt;
                                            internal default&lt;br /&gt;
                                            &amp;quot;(objectClass=inetOrgPerson)&amp;quot;&lt;br /&gt;
                groupfilter                 searchfilter to find group objects,&lt;br /&gt;
                                            internal default&lt;br /&gt;
                                            &amp;quot;(objectClass=posixGroup)&amp;quot;&lt;br /&gt;
                deleteusers                 Say yes if you want to delete users&lt;br /&gt;
                                            in ox which are not in your&lt;br /&gt;
                                            directory and are not named by the&lt;br /&gt;
                                            &amp;quot;dontModifyUids&amp;quot; option&lt;br /&gt;
                deletegroups                say yes to delete empty and non&lt;br /&gt;
                                            existing groups in ldap in ox&lt;br /&gt;
                dontModifyUids              list of comma separeted uid&#039;s which&lt;br /&gt;
                                            shall not be modified by the sync&lt;br /&gt;
                                            script. You should note at least&lt;br /&gt;
                                            the contextadmin&lt;br /&gt;
                groupMemberAttribute        name of attribute which holds the&lt;br /&gt;
                                            members in a group object&lt;br /&gt;
                memberAttributeIsDN         say yes if groupMemberAttribute is&lt;br /&gt;
                                            a distinguished name&lt;br /&gt;
                groupDisplayNameAttribute   displayname attribute for group&lt;br /&gt;
                groupNumberAttribute        unique number attribute for group&lt;br /&gt;
                userPrimaryGroupAttribute   attribute name where a users primary&lt;br /&gt;
                                            is stored&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the mapping file you will find ox options to create or modify users. The name on the left side of the equal sign is the name for the ox options. On the right side you name the ldap attribute name for this option. You can also give static values by enclosing them with qoutes.&lt;br /&gt;
&lt;br /&gt;
=== Active Directory ===&lt;br /&gt;
&lt;br /&gt;
For active directory synchronization just modify at least ldapuri, userbasedn, groupbasedn, ldapuserdn and ldapuserpassword.&lt;br /&gt;
&lt;br /&gt;
To run the script type&lt;br /&gt;
&lt;br /&gt;
 $ /opt/oxldapsync/sbin/oxldapsync.pl -f &amp;lt;CONFIG FILENAME&amp;gt; \&lt;br /&gt;
                                    -A &amp;lt;CONTEXT ADMIN USERNAME&amp;gt; \&lt;br /&gt;
                                    -P &amp;lt;CONTEXT ADMIN PASSWORD&amp;gt; \&lt;br /&gt;
                                    -c &amp;lt;CONTEXTID&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additional parameters are:&lt;br /&gt;
&lt;br /&gt;
                        -h       help message&lt;br /&gt;
                        -n       don&#039;t save last user search time&lt;br /&gt;
                        -v       Verbose mode&lt;br /&gt;
                        -s       print messages to stdout&lt;br /&gt;
&lt;br /&gt;
To run this program regularly just create a cronjob&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
== Special chars scrambled ==&lt;br /&gt;
If you run OX LDAP Sync via Cronjob an the umlauts (ä,ö,ü,...) of your entries in the &amp;quot;Global Addressbook&amp;quot; are scrambled, try setting the LANG environment variable in your crontab, e. g. German UTF-8 users should set this to something like this:&lt;br /&gt;
&lt;br /&gt;
 LANG=de_DE.UTF-8&lt;br /&gt;
 #m      h       dom     mon     dow     command&lt;br /&gt;
 0       23      *       *       Sun     /path/to/oxldapsync.pl&lt;br /&gt;
&lt;br /&gt;
For more information on how to use the crontab please [http://tldp.org/LDP/LGNET/151/prestia.html this Howto at The Linux Documentation Project].&lt;/div&gt;</summary>
		<author><name>Floeschie</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=OXLDAPSync_Guide&amp;diff=3463</id>
		<title>OXLDAPSync Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=OXLDAPSync_Guide&amp;diff=3463"/>
		<updated>2009-04-03T05:05:18Z</updated>

		<summary type="html">&lt;p&gt;Floeschie: Added Troubleshooting section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= How to install OX LDAP Sync =&lt;br /&gt;
&lt;br /&gt;
== Debian ==&lt;br /&gt;
&lt;br /&gt;
Add the following entry to /etc/apt/sources.list:&lt;br /&gt;
&lt;br /&gt;
 deb http://software.open-xchange.com/OX6/unsupported/repo/DebianEtch/ /&lt;br /&gt;
&lt;br /&gt;
and run&lt;br /&gt;
&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install oxldapsync&lt;br /&gt;
&lt;br /&gt;
== SLES10 ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important: Some of the dependencies require SLES10 SDK&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Run the following commands:&lt;br /&gt;
&lt;br /&gt;
 $ zypper sa http://software.open-xchange.com/OX6/unsupported/repo/SLES10 UNSUPPORTED&lt;br /&gt;
 $ zypper install oxldapsync&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= How to run OX LDAP Sync =&lt;br /&gt;
&lt;br /&gt;
With OX LDAP Sync you can sync user and group objects from a LDAP compatible&lt;br /&gt;
directory with Open-Xchange. When you modify or add an user to your&lt;br /&gt;
ldap directory oxldapsync will also modify or add the user to Open-Xchange.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
# An LDAP-server (currently openldap and ADS are supported)&lt;br /&gt;
# You need one user distinguished name who at least can search and            read user objects. If you decide to synchronize groups, the ldap user needs to search and read these objects, too.&lt;br /&gt;
# If you want to synchronize groups you need to know if the           membership to the group is defined by the userid or by the           complete distinguished name of the user.&lt;br /&gt;
# User attributes you want to sync with Open-Xchange&lt;br /&gt;
# Open-Xchange must authenticate against the LDAP server instead of the database, which is the default. In order to achieve that, deinstall package &amp;lt;tt&amp;gt;open-xchange-authentication-database&amp;lt;/tt&amp;gt; and install &amp;lt;tt&amp;gt;open-xchange-authentication-ldap&amp;lt;/tt&amp;gt; and configure it accordingly in changing /opt/open-xchange/etc/groupware/ldap.properties. As an alternative, &amp;lt;tt&amp;gt;open-xchange-authentication-imap&amp;lt;/tt&amp;gt; could be used, if your IMAP server authenticates against your LDAP server.&lt;br /&gt;
&lt;br /&gt;
== configuring OX LDAP Sync ==&lt;br /&gt;
&lt;br /&gt;
After installing OXSync you will find the configuration files under&lt;br /&gt;
/opt/oxldapsync/etc. You can use the example configuration files&lt;br /&gt;
ldapsync.conf (openldap) and ldapsyn-ads.conf (Active Directory) as&lt;br /&gt;
starting point.&lt;br /&gt;
&lt;br /&gt;
=== OpenLDAP ===&lt;br /&gt;
&lt;br /&gt;
Open ldapsync in your favourite text editor change following options to your needs:&lt;br /&gt;
&lt;br /&gt;
                ldapuri                     with dns-name or ip of your&lt;br /&gt;
                                            LDAP-Server&lt;br /&gt;
                userbasedn                  distinguished name under which the&lt;br /&gt;
                                            script will find user objects&lt;br /&gt;
                groupbasedn                 distinguished name under which the&lt;br /&gt;
                                            script will find group objects&lt;br /&gt;
                ldaptype                    type of ldap in this case openldap&lt;br /&gt;
                ldapuserdn                  distinguished name of the user&lt;br /&gt;
                                            which will be used to query the&lt;br /&gt;
                                            directory&lt;br /&gt;
                ldapuserpassword            password for the ldapuser&lt;br /&gt;
                mappingfile                 absolute path to your ldap&lt;br /&gt;
                                            attribute -&amp;gt; ox attribute mapping&lt;br /&gt;
                updategroups                &amp;quot;yes&amp;quot; if you want to also sync&lt;br /&gt;
                                            groups with ox&lt;br /&gt;
                updateAlias                 shall mail aliases of a user get&lt;br /&gt;
                                            updated with the one from the ldap.&lt;br /&gt;
                                            In case you can name only one&lt;br /&gt;
                                            mailaddress on your directory, say&lt;br /&gt;
                                            no here and you can manually add&lt;br /&gt;
                                            further mailaddresses in ox. They&lt;br /&gt;
                                            will not get deleted by the&lt;br /&gt;
                                            synctool.&lt;br /&gt;
                usemodifytimestamp          set to yes, to update only users&lt;br /&gt;
                                            since last run&lt;br /&gt;
                userfilter                  searchfilter to find user objects,&lt;br /&gt;
                                            internal default&lt;br /&gt;
                                            &amp;quot;(objectClass=inetOrgPerson)&amp;quot;&lt;br /&gt;
                groupfilter                 searchfilter to find group objects,&lt;br /&gt;
                                            internal default&lt;br /&gt;
                                            &amp;quot;(objectClass=posixGroup)&amp;quot;&lt;br /&gt;
                deleteusers                 Say yes if you want to delete users&lt;br /&gt;
                                            in ox which are not in your&lt;br /&gt;
                                            directory and are not named by the&lt;br /&gt;
                                            &amp;quot;dontModifyUids&amp;quot; option&lt;br /&gt;
                deletegroups                say yes to delete empty and non&lt;br /&gt;
                                            existing groups in ldap in ox&lt;br /&gt;
                dontModifyUids              list of comma separeted uid&#039;s which&lt;br /&gt;
                                            shall not be modified by the sync&lt;br /&gt;
                                            script. You should note at least&lt;br /&gt;
                                            the contextadmin&lt;br /&gt;
                groupMemberAttribute        name of attribute which holds the&lt;br /&gt;
                                            members in a group object&lt;br /&gt;
                memberAttributeIsDN         say yes if groupMemberAttribute is&lt;br /&gt;
                                            a distinguished name&lt;br /&gt;
                groupDisplayNameAttribute   displayname attribute for group&lt;br /&gt;
                groupNumberAttribute        unique number attribute for group&lt;br /&gt;
                userPrimaryGroupAttribute   attribute name where a users primary&lt;br /&gt;
                                            is stored&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the mapping file you will find ox options to create or modify users. The name on the left side of the equal sign is the name for the ox options. On the right side you name the ldap attribute name for this option. You can also give static values by enclosing them with qoutes.&lt;br /&gt;
&lt;br /&gt;
=== Active Directory ===&lt;br /&gt;
&lt;br /&gt;
For active directory synchronization just modify at least ldapuri, userbasedn, groupbasedn, ldapuserdn and ldapuserpassword.&lt;br /&gt;
&lt;br /&gt;
To run the script type&lt;br /&gt;
&lt;br /&gt;
 $ /opt/oxldapsync/sbin/oxldapsync.pl -f &amp;lt;CONFIG FILENAME&amp;gt; \&lt;br /&gt;
                                    -A &amp;lt;CONTEXT ADMIN USERNAME&amp;gt; \&lt;br /&gt;
                                    -P &amp;lt;CONTEXT ADMIN PASSWORD&amp;gt; \&lt;br /&gt;
                                    -c &amp;lt;CONTEXTID&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Additional parameters are:&lt;br /&gt;
&lt;br /&gt;
                        -h       help message&lt;br /&gt;
                        -n       don&#039;t save last user search time&lt;br /&gt;
                        -v       Verbose mode&lt;br /&gt;
                        -s       print messages to stdout&lt;br /&gt;
&lt;br /&gt;
To run this program regularly just create a cronjob&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
== Special chars scrambled ==&lt;br /&gt;
If you run OX LDAP Sync via Cronjob an the umlauts (ä,ö,ü,...) of your entries in the &amp;quot;Global Addressbook&amp;quot; are scrambled, try adding the LOCALE environment variable to your crontab, e. g. German UTF-8 users should set this to&lt;br /&gt;
&lt;br /&gt;
 LANG=de_DE.UTF-8&lt;br /&gt;
 #m      h       dom     mon     dow     command&lt;br /&gt;
 0       23      *       *       Sun     /path/to/oxldapsync.pl&lt;/div&gt;</summary>
		<author><name>Floeschie</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=User:Floeschie&amp;diff=2096</id>
		<title>User:Floeschie</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=User:Floeschie&amp;diff=2096"/>
		<updated>2008-07-16T08:21:22Z</updated>

		<summary type="html">&lt;p&gt;Floeschie: just added some info about me&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See https://libertalia.eu/ for more information about me (german)!&lt;/div&gt;</summary>
		<author><name>Floeschie</name></author>
	</entry>
</feed>