{"id":213,"date":"2011-08-15T10:43:22","date_gmt":"2011-08-15T08:43:22","guid":{"rendered":"http:\/\/diablo.craem.net\/wordpress\/?p=213"},"modified":"2011-08-15T10:43:22","modified_gmt":"2011-08-15T08:43:22","slug":"migrando-exchange-2010-a-zarafa-parte-4","status":"publish","type":"post","link":"https:\/\/diablo.craem.net\/?p=213","title":{"rendered":"Migrando Exchange 2010 a Zarafa, parte 4"},"content":{"rendered":"<p>Ahora, editamos la parte de Ldap, haciendo:<br \/>\n<strong><br \/>\nroot@zeus:\/etc\/zarafa# cp ldap.openldap.cfg ldap.cfg<br \/>\n<\/strong><br \/>\nCambiamos :<br \/>\n<em>nano ldap.cfg<\/em><br \/>\n<strong><br \/>\n##############################################################<br \/>\n#  LDAP\/ACTIVE DIRECTORY USER PLUGIN SETTINGS<br \/>\n#<br \/>\n# Any of these directives that are required, are only required if the<br \/>\n# userplugin parameter is set to ldap.<br \/>\n# LDAP host name\/IP address<br \/>\n# Optional, default = localhost<br \/>\nldap_host = la.ip.de.mi.ldap<br \/>\n# LDAP port<br \/>\n# Optional, default = 389<br \/>\n# Use 636 for ldaps<br \/>\nldap_port = 389<br \/>\n# LDAP protocol<br \/>\n# Optional, default = ldap<br \/>\n# use &#8216;ldaps&#8217; for SSL encryption. Make sure \/etc\/ldap\/ldap.conf is<br \/>\n# configured correctly with TLS_CACERT<br \/>\nldap_protocol = ldap<br \/>\n# The DN of the user to bind as for normal operations (not used for<br \/>\n# authentication if ldap_authentication_method is set to \u00abbind\u00bb<br \/>\n# Optional, default = empty (anonymous bind)<br \/>\n# The userPassword attribute must be readable for this user if the<br \/>\n# ldap_authentication_method option is set to password.<br \/>\nldap_bind_user = cn=admin,dc=craem,dc=net<br \/>\n# LDAP bind password<br \/>\n# Optional, default = empty (no password)<br \/>\nldap_bind_passwd = password_ldap_user<br \/>\n# The timeout for network operations in seconds<br \/>\nldap_network_timeout = 30<br \/>\n# When an object (user\/group\/company) is changed, this attribute will also change:<br \/>\n# Active directory: uSNChanged<br \/>\n# LDAP: modifyTimestamp<br \/>\nldap_last_modification_attribute = modifyTimestamp<br \/>\n#########<br \/>\n# Object settings<br \/>\n# Top level search base, every object should be available under this tree<br \/>\nldap_search_base = dc=craem,dc=net<br \/>\n# attribute name which is\/(should: was) used in ldap_user_search_filter<br \/>\nldap_object_type_attribute = objectClass<br \/>\nldap_user_type_attribute_value = posixAccount<br \/>\nldap_group_type_attribute_value = posixGroup<br \/>\nldap_contact_type_attribute_value = zarafa-contact<br \/>\nldap_company_type_attribute_value = organizationalUnit<br \/>\nldap_addresslist_type_attribute_value = zarafa-addresslist<br \/>\nldap_dynamicgroup_type_attribute_value = zarafa-dynamicgroup<br \/>\n<\/strong><br \/>\ny para manejar las <em>quotas<\/em> de almacenamiento:<br \/>\n<strong> should also receive a warning mail when a user exceeds his quota.<br \/>\nldap_quota_userwarning_recipients_attribute = zarafaQuotaUserWarningRecipients<br \/>\n# Optional, default = text<br \/>\n# Active directory: dn<br \/>\n# LDAP: text<br \/>\nldap_quota_userwarning_recipients_attribute_type = text<br \/>\n# Optional, default empty<br \/>\nldap_quota_userwarning_recipients_relation_attribute =<br \/>\n# Optional<br \/>\n# The attribute which indicates which users should receive a warning mail<br \/>\n# when a company exceeds his quota.<br \/>\nldap_quota_companywarning_recipients_attribute = zarafaQuotaCompanyWarningRecipients<br \/>\n# Optional, default = text<br \/>\n# Active directory: dn<br \/>\n# LDAP: text<br \/>\nldap_quota_companywarning_recipients_attribute_type = text<br \/>\n# Optional, default empty<br \/>\nldap_quota_companywarning_recipients_relation_attribute =<br \/>\n# Whether to override the system wide quota settings<br \/>\nldap_quotaoverride_attribute = zarafaQuotaOverride<br \/>\nldap_warnquota_attribute = zarafaQuotaWarn<br \/>\nldap_softquota_attribute = zarafaQuotaSoft<br \/>\nldap_hardquota_attribute = zarafaQuotaHard<br \/>\n<\/strong><br \/>\n<strong><br \/>\n# Whether to override the system wide quota settings for all users within the company<br \/>\nldap_userdefault_quotaoverride_attribute = zarafaUserDefaultQuotaOverride<br \/>\nldap_userdefault_warnquota_attribute = zarafaUserDefaultQuotaWarn<br \/>\nldap_userdefault_softquota_attribute = zarafaUserDefaultQuotaSoft<br \/>\nldap_userdefault_hardquota_attribute = zarafaUserDefaultQuotaHard<br \/>\n# Mapping from the quota attributes to a number of bytes.  Qmail-LDAP<br \/>\n# schema uses bytes (1), ADS uses kilobytes (1024*1024).<br \/>\nldap_quota_multiplier = 1<br \/>\n<\/strong><br \/>\nAplicamos los cambios y iniciamos zarafa<br \/>\n<strong>root@zeus#\/etc\/init.d\/zarafa-server start<\/strong><br \/>\nAhora modificamos los usuarios de ldap para que sean usuarios de zarafa, a\u00f1adiendo los siguientes atributos:<br \/>\n<strong>object-Class: zarafa-user<\/strong><br \/>\nY modificando:<br \/>\n<strong><br \/>\nzarafaAccount = 1<br \/>\nzarafaAdmin = 1<br \/>\n<\/strong><br \/>\n<em>ZarafaAdmin=1<\/em> ser\u00e1 el usuario con derecho de acceso a todos los buzones, importante para la migraci\u00f3n. <em>zarafaAccount=1<\/em>, indica que este usuario es de zarafa.<br \/>\nA\u00f1adimos las direcciones de email, en el campo email, que pueden ser, de <em>1 a N.<\/em><br \/>\nUna vez modificados todos los usuario implicados, consultamos desde la l\u00ed\u00adnea de comandos los usuarios de zarafa:<br \/>\n<strong><br \/>\nroot@zeus:\/etc\/zarafa# zarafa-admin -l<br \/>\nUser list for Default(9):<br \/>\n\tUsername\tFullname\t\tHomeserver<br \/>\n\t&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n\tSYSTEM\t\tSYSTEM\t\t\tZarafa<br \/>\n\tpepito\t\tPepito<br \/>\n\tmanolito\tManolito<br \/>\n\tposeidon\tPoseidon<br \/>\n\tzeus\t        Zeus<br \/>\n\tandromeda\tAndromeda<br \/>\n\topenfire        openfire<br \/>\n\tcepheus\t\tCepheus<br \/>\n\tinfo\t\tinfo<br \/>\n<\/strong><br \/>\nSi no nos sale la lista de usuarios, algo hemos hecho mal y toca revisar la configuraci\u00f3n.<br \/>\nAntes de crear los buzones, configuramos correctamente el idioma, para evitar sorpresas y cambios posteriores en el idioma de los buzones. Nos vamos al directorio:<br \/>\n <em>\/etc\/zarafa\/userscripts\/createuser.d<\/em><br \/>\ny editamos el fichero <em>00createstore<\/em> y lo dejamos tal que:<br \/>\n<strong><br \/>\n#! \/bin\/sh<br \/>\n# Create a Zarafa user for an already existing external user.  Create<br \/>\n# and initialize the user&#8217;s stores.<br \/>\nPATH=$PATH:\/sbin:\/usr\/local\/sbin:\/usr\/sbin<br \/>\n# The ZARAFA_USER variable from the server will always be in UTF-8<br \/>\n# format.  The &#8211;utf8 option must be set before this value is used,<br \/>\n# since the current locale isn&#8217;t necessarily UTF-8.<br \/>\nzarafa-admin &#8211;create-store username &#8211;lang es_ES.UTF-8<br \/>\n#zarafa-admin &#8211;utf8 &#8211;create-store \u00ab${ZARAFA_USER}\u00bb &#8211;lang \u00ab${ZARAFA_LANG}\u00bb<br \/>\n<\/strong><br \/>\nAhora creamos los buzones:<br \/>\n<strong><br \/>\nroot@zeus#zarafa-admin &#8211;create-store pepito<br \/>\n&#8230;..<br \/>\n<\/strong><br \/>\nY as\u00ed\u00ad con todos los buzones<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ahora, editamos la parte de Ldap, haciendo: root@zeus:\/etc\/zarafa# cp ldap.openldap.cfg ldap.cfg Cambiamos : nano ldap.cfg ############################################################## # LDAP\/ACTIVE DIRECTORY USER PLUGIN SETTINGS # # Any of these directives that are required, are only required if the # userplugin parameter is set to ldap. # LDAP host name\/IP address # Optional, default = localhost ldap_host = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[58,70,102,106,134,201],"class_list":["post-213","post","type-post","status-publish","format-standard","hentry","category-linux","tag-debian","tag-exchange","tag-linux-2","tag-migrar-exchange-a-zarafa","tag-openldap","tag-zarafa"],"_links":{"self":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts\/213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=213"}],"version-history":[{"count":0,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts\/213\/revisions"}],"wp:attachment":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}