Announcement

Collapse
No announcement yet.

error oxldapsync.pl

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

  • error oxldapsync.pl

    Hi!!!
    This happens when I run oxldapsync.pl:

    /opt/oxldapsync/sbin/oxldapsync.pl -c "1" -A oxadminmaster -P ************ -f /opt/oxldapsync/etc/ldapsync.conf -v -s
    Could not get current userlist! Unknown Error 106
    Could not get current userlist! Unknown Error 106

    Any suggestion?

  • #2
    hi mablasfor,

    i've got the same problem. But i don't have any solution too.

    I hope anybody can help us.

    Do you please post your oxldapsync.log file?
    Last edited by Pro-OX; 04-23-2010, 08:10 AM.

    Comment


    • #3
      Originally posted by mablasfor View Post
      Hi!!!
      This happens when I run oxldapsync.pl:

      /opt/oxldapsync/sbin/oxldapsync.pl -c "1" -A oxadminmaster -P ************ -f /opt/oxldapsync/etc/ldapsync.conf -v -s
      Could not get current userlist! Unknown Error 106
      Could not get current userlist! Unknown Error 106

      Any suggestion?
      You need to name the context admin. Not the master admin. if you used the official ox howto it should be oxadmin.

      Comment


      • #4
        I use the offical oxldapsync.
        I tried it with the oxadmin, but i saw the same error message.

        That's why i'm so confused.

        Comment


        • #5
          I change the masteradmin by contextadmin and the error has changed:
          Error on search : No such object at /opt/oxldapsync/sbin/../lib/OX/LDAPConnector/ldap.pm line 155.

          This is ldap.pm:
          sub searchgroups()
          {
          my ($self) = @_;
          my $ldap = $self->{ldap};
          my $basedn = $self->{groupbasedn};
          my $mesg = $self->subsearch($ldap, $basedn, $self->{groupfilter});
          $mesg->code && die "Error on search $@ : " . $mesg->error; ------>line 155
          $self->{GroupSearchObj} = $mesg;
          }

          Help please!!
          Last edited by mablasfor; 04-26-2010, 08:31 AM.

          Comment


          • #6
            Ok it's solved.
            It was a bad configuration in ldapsync.conf
            Last edited by mablasfor; 04-28-2010, 10:52 AM.

            Comment


            • #7
              what problem was it exactly?
              maybe that's the problem what i've got

              Comment


              • #8
                upload your ldapsync file if is possible.

                Comment


                • #9
                  you mean the ldsync.conf?

                  Comment


                  • #10
                    sub syncGroups()
                    {
                    my $ldapobj = shift;
                    my $config_hash = shift;

                    if (! defined($ldapobj)) { die("sub syncGroups: ldapobj undefined\n");
                    if (! defined($config_hash)) { die("sub syncGroups: config_hash undefin

                    my $userhelper = OX::User::Helper->new($config_hash->{contextid},$confi
                    my @oxUserList = $userhelper->getOXUserList();

                    my $grouphelper = OX::Group::Helper->new($config_hash->{contextid},$con

                    my $groups = $ldapobj->getGroups();

                    foreach my $groupkey (keys%$groups)
                    {
                    if ($groups->{$groupkey}{'member'})
                    {
                    $grouphelper->processGroup($groupkey, $groups->{$groupkey}{'dis
                    }
                    }

                    if ($config_hash->{deletegroups} eq "yes")
                    {
                    $grouphelper->deleteNotTouchedGroups();
                    }
                    }

                    Comment


                    • #11
                      i GOT THIS MESSAGE TOO

                      Originally posted by Pro-OX View Post
                      what problem was it exactly?
                      maybe that's the problem what i've got
                      Please teel us what change have you done in this conf file.

                      Thanks a lot.

                      Comment

                      Working...
                      X