Announcement

Collapse
No announcement yet.

Error running oxldapsync for the first time

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error running oxldapsync for the first time

    I'm in the process of installing OX6 on SLES11 and am following these documents to the letter:







    However, when I attempt to run oxldapsync for the first time,

    /opt/oxldapsync/sbin/oxldapsync.pl -c 1 -f /opt/oxldapsync/etc/ldapsync.conf -A oxadmin -P admin_password

    I get:

    Error on bind: No password, did you mean noauth or anonymous?
    at /opt/oxldapsync/sbin/../lib/OX/LDAPConnector/ldap.pm
    line 34, <DATA> line 465.

    Can anyone help? This is my ldapsync.conf :

    #######################################
    #
    # Example Openldap specific config file
    #
    ldapuri = ldap://localhost

    # OxSync variable opt directory
    vardirectory = /var/opt/oxldapsync

    # Open Xchange sbin Directory
    oxpath = /opt/open-xchange/sbin

    # Logfile
    logfile = /var/log/oxldapsync.log

    # Where to search for users
    userbasedn = ou=people,dc=mycompany,dc=co,dc=uk

    # Where to search for groups
    groupbasedn = ou=groups,dc=mycompany,dc=co,dc=uk

    # User dn for Connection to LDAP
    ldapuserdn = cn=admin,dc=mycompany,dc=co,dc=uk

    # Password for Connecting to ldap
    ldapuserpassword =

    # Mapping file for ldap values > ox parameters
    mappingfile = /opt/oxldapsync/etc/mapping.openldap.conf

    # Search scope
    ldapsearchscope = sub

    # Type of ldap (class to load)
    ldaptype = openldap

    # shall groups get updated
    updateGroups = yes

    # use modifyTimestamp to speed up synchronization
    usemodifytimestamp = no

    # Shall an empty attribute in LDAP be forced to be empty in ox to
    updateemptyattributes = no

    # Custom filter for finding user
    userFilter =

    #Custom filter for finding groups
    groupFilter =

    #Custom filter of users which should be ignored for deletion
    userignorefilter =

    #Should mail addresses of an existing user synced with source
    updateAliases = yes

    # shall non-existing users in LDAP be deleted in OX
    deleteusers = yes

    # shall non-existing and empty groups in LDAP be deleted in OX
    deletegroups = yes

    # unique id Attribute
    uidAttribute = uid

    # user ids in OX which should not be deleted
    dontModifyUids = oxadmin

    # unique id Attribute
    uidAttribute = uid

    # user ids in OX which should not be deleted
    dontModifyUids = oxadmin

    # Attributename of groups for member
    groupMemberAttribute = member

    # Is attribute a distinguished name
    memberAttributeIsDN = yes

    # unique name attribute for group
    groupNameAttribute = cn

    # displayname attribute for group
    groupDisplayNameAttribute = displayName

    # unique number attribute for group
    groupNumberAttribute = gidNumber

    # attribute name where a users primary is stored
    userPrimaryGroupAttribute = gidNumber

  • #2
    As you can see in your config file, the error message perfectly fits reality:

    Code:
    Error on bind: No password, did you mean noauth or anonymous?
    Code:
    # Password for Connecting to ldap
    ldapuserpassword =

    Comment


    • #3
      But it is not obvious to me what this password should be.

      If I put a password in that file and try running oxldapsync for the first time, I get an 'Invalid Credentials' error.

      Any idea what the password should be if I am doing a completely new install of OX6, following the SLES11 Integration & Installation guides to the letter?

      Comment


      • #4
        For info, I am migrating from an OX5 server. OX support suggested that the password required may be the one I used for the mailadmin user on our OX5 server.

        However, I've tried that, and many other combinations to no avail.

        Can the password be reset somehow, so I can get oxldapsync to work?

        I'd very much appreciate any suggestions.

        Comment


        • #5
          oxldapsync password

          The passphrase needed is that of "mailadmin" in OX5

          lg!R

          Comment

          Working...
          X