Results 1 to 4 of 4

Thread: ldap-vam.cf

  1. #1
    jujub is offline New Member
    Join Date
    Nov 2007
    Posts
    3
    Rep Power
    7

    Question ldap-vam.cf

    hello,

    I have down a migration of zimbra opensource 4.5.5 to zimbra open source 4.5.9 on CentoS 4.3 all was ok.

    but a problem arrived, after I have change the configuration files like the one I used before.

    I have down changes in the zmmta.cf to use an ldap for the virtual aliases:
    POSTCONF virtual_alias_maps hash:/etc/zimbraiufm/group.aliases,ldap:/opt/zimbra/conf/ldap-vam.cf


    I changed my ldap-vam.cf too

    server_host = ldap://azimbra.###.fr:389
    server_port = 389
    search_base =
    query_filter = (&(|(zimbraMailDeliveryAddress=%s)(zimbraMailAlias=% s)(zimbraMailCatchAllAddress=%s)(zimbraMailCanonic alAddress=%s))(zimbraMailStatus=enabled))
    result_attribute = zimbraMailDeliveryAddress,zimbraMailForwardingAddr ess,zimbraPrefMailForwardingAddress,zimbraMailCatc hAllForwardingAddress
    version = 3
    bind = no
    timeout = 30

    I have restart my Zimbra
    everything work well with the new version

    24 hours later the file ldap-vam.cf lost (zimbraMailCanonicalAddress=%s) in the query filter

    no trace int logs...
    do you have an explanantion on how this part of the filter could disapear ?

    thank you for helping me

  2. #2
    jujub is offline New Member
    Join Date
    Nov 2007
    Posts
    3
    Rep Power
    7

    Question add on

    hello
    I investigated and found something, everyday at 00:07 the files :

    -rw-rw-r-- 1 zimbra zimbra 324 nov 10 00:07 ldap-scm.cf

    -rw-rw-r-- 1 zimbra zimbra 252 nov 10 00:07 ldap-transport.cf

    -rw-rw-r-- 1 zimbra zimbra 240 nov 10 00:07 ldap-vad.cf

    -rw-rw-r-- 1 zimbra zimbra 383 nov 10 00:07 ldap-vam.cf

    -rw-rw-r-- 1 zimbra zimbra 240 nov 10 00:07 ldap-vmd.cf

    -rw-rw-r-- 1 zimbra zimbra 234 nov 10 00:07 ldap-vmm.cf


    are modified, I don't find for the moment why and by who, those files are modified

    if you had a clue or someting which could help me thank you

  3. #3
    Artturi is offline Loyal Member
    Join Date
    Dec 2006
    Location
    Paris
    Posts
    78
    Rep Power
    8

    Default

    Well, I'm interested in that too.

    I had also to modify this file as explained in bug 16668
    Bug 16668 - Make zimbraMailCanonicalAddress a valid address for the account

    This problem raises a new question, about how to add permanent modifications to ldap-vam.cf.

    Anyone an idea about that ?

    Regards,
    Artturi

  4. #4
    jujub is offline New Member
    Join Date
    Nov 2007
    Posts
    3
    Rep Power
    7

    Smile Answer to that problem

    hi this is the answer to my problem


    ===== Modify daemon file ''zmmtactl'' =====

    each time you do '''zmmtactl reload''' files '''.cf''' present in the directory '''/opt/zimbra/conf''' are deleted and replaced by the original version. this the HowTo understand the daemon and how to modify '''.cf''' files (here an exemple for the '''ldap-vam.cf''')

    [root@azimbra ~]# cd /opt/zimbra/bin/
    [root@azimbra bin]# vi zmmtac
    [root@azimbra bin]# vi zmmtactl

    ====== Modify after line 43 part '''reload''' ======

    reload)
    for i in $SCRIPTS; do
    /opt/zimbra/bin/$i reload
    done
    ;;


    [root@azimbra bin]# vi postfix



    ====== Modify line 49 '''rewrite''' ======

    if [ "x$1" = "xstart" -o "x$1" = "xreload" ]; then
    if [ x$2 = "x" ]; then
    rewriteconfig
    fi
    ${zimbra_home}/postfix-${postfix_version}/sbin/postmap ${zimbra_home}/conf/postfix_header_checks
    #sudo ${zimbra_home}/postfix-${postfix_version}/sbin/postsuper -r ALL
    fi



    [root@azimbra bin]# cd /opt/zimbra/libexec/
    [root@azimbra libexec]# vi zmmtainit

    ====== Modify ligne 69 part '''ldap-vam.cf''' ======

    cat< ${confdir}/ldap-vam.cf
    server_host = ${ldap_url}
    server_port = ${ldap_port}
    search_base =
    query_filter = (&(|(zimbraMailDeliveryAddress=%s)(zimbraMailAlias=% s)(zimbraMailCatchAllAddress=%s)'''(zimbraMailCano nicalAddress=%s)''')(zimbraMailStatus=enabled))
    result_attribute = zimbraMailDeliveryAddress,zimbraMailForwardingAddr ess,zimbraPrefMailForwardingAddress,zimbraMailCatc hAllForwardingAddress
    version = 3
    bind = no
    timeout = 30
    EOF


    ps thank you to Mikael KERMORGANT

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. LDAP Replication Experiences
    By technikolor in forum Administrators
    Replies: 4
    Last Post: 11-12-2008, 12:52 AM
  2. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 06:45 AM
  3. External LDAP Problem
    By facerw in forum Installation
    Replies: 7
    Last Post: 05-08-2007, 04:29 AM
  4. Mac OSX install: Java errors & LDAP CA error
    By jefbear in forum Installation
    Replies: 9
    Last Post: 12-16-2006, 03:39 PM
  5. Replies: 4
    Last Post: 11-15-2006, 12:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •