Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Search

    How to import users from AD-DS, and assign them to an client?

    Operating
    3
    6
    118
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      thehazzard last edited by thehazzard

      Hi all,

      i want to know how to add users from our AD-DS in i-doit. I read the kbs about it (https://kb.i-doit.com/pages/viewpage.action?pageId=113475861). But all is in Linux, we are using the XAMPP (windows server 2019 version)

      So under: administration - interfaces / external data // LDAP // Server

      I fill in all fields and it gives me "Connection OK" 111 or more object(s) found in this attribute. (Also tried instead of user group as in the kb described.
      Capture.JPG

      but i cannot find them.

      1 Reply Last reply Reply Quote 0
      • L
        leobaer last edited by

        Hi

        Import user/person objects has to be triggered on the command line. Look for the "console.php ldap-sync" in the KB and how to use console.php.

        AD users will be imported to the object type that has the persons category (normally contacts > Person)

        What you mean by "Assigning to clients"? This would probably need a ldap.conf file or even other ways of importing.

        Regards
        Leo

        T 1 Reply Last reply Reply Quote 0
        • T
          thehazzard @leobaer last edited by

          @leobaer said in How to import users from AD-DS, and assign them to an client?:

          Hi

          Import user/person objects has to be triggered on the command line. Look for the "console.php ldap-sync" in the KB and how to use console.php.

          AD users will be imported to the object type that has the persons category (normally contacts > Person)

          What you mean by "Assigning to clients"? This would probably need a ldap.conf file or even other ways of importing.

          Regards
          Leo

          Hi Leo,

          you mean this kb: https://kb.i-doit.com/pages/viewpage.action?pageId=97288195

          it shows still Linux commands, where do i need to replicate this ??

          S 1 Reply Last reply Reply Quote 0
          • S
            StephanBuerger @thehazzard last edited by StephanBuerger

            @thehazzard
            Hi,

            1st: excuse my bad english 😉

            For the AD Import you need:

            a) a script
            b) an automatic task (called cronjob in LINUX

            The script is like this:

            #!/bin/bash
            sudo -u idoit /usr/local/bin/idoit ldap-sync --user admin --password=xxxxx--config=/var/www/i-doit/htdocs/src/handler/config/ldap.ini --quiet
            

            store this as /usr/bin/ldapsync.sh

            You can organize your cronjobs if you use this command:

            sudo crontab  -e
            

            And add this example;

            # m h  dom mon dow   command
            # each day as 2:30 
            30 2 * * 1-6 /bin/bash /usr/bin/ldapsync.sh
            
            T 1 Reply Last reply Reply Quote 0
            • T
              thehazzard @StephanBuerger last edited by thehazzard

              @StephanBuerger said in How to import users from AD-DS, and assign them to an client?:

              @thehazzard
              Hi,

              1st: excuse my bad english 😉

              For the AD Import you need:

              a) a script
              b) an automatic task (called cronjob in LINUX

              The script is like this:

              #!/bin/bash
              sudo -u idoit /usr/local/bin/idoit ldap-sync --user admin --password=xxxxx--config=/var/www/i-doit/htdocs/src/handler/config/ldap.ini --quiet
              

              store this as /usr/bin/ldapsync.sh

              You can organize your cronjobs if you use this command:

              sudo crontab  -e
              

              And add this example;

              # m h  dom mon dow   command
              # each day as 2:30 
              30 2 * * 1-6 /bin/bash /usr/bin/ldapsync.sh
              

              thank you for the answer
              i want to use that, but how to run this script in XAMPP webserver? we do dont use linux machine for the i-doit.

              1 Reply Last reply Reply Quote 0
              • T
                thehazzard last edited by

                Just a quick question.

                I found something i thinkg what is like Linux called Shell in XAMPP.

                will this work?
                ldapsync1.JPG

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post