Menu

LDAP Users unable to login

janis
2024-01-14
2024-01-24
  • janis

    janis - 2024-01-14

    From Web:

    https://local/webservices/rest.php?login_mode=form&version=1.0
    code 1
    message "Error: Invalid login"


    From cmd:

    root@debian:/var/www/html/extensions/ldap-data-collector# php toolkit/testconnection.php
    curl_init exists: 1
    Problem opening URL: https://local/webservices/rest.php?login_mode=form&version=1.0
    error msg: SSL certificate problem: self signed certificate
    curl_init error code: 60 (cf https://www.php.net/manual/en/function.curl-errno.php)


    log file:
    
    ldap_authentication: bad LDAP server configuration: 'local-IP' not found | IssueLog |||
    

    AD user is imported to iTop, but cannot autentificate to iTop portal, cofig:

    'authent-ldap' => array (
        'host' => 'AD-IP-adress',
        'port' => 389,
        'default_user' => 'AD-LDAP-USR',
        'default_pwd' => 'AD-LDAP-USR-PWD',
        'base_dn' => 'OU=usr,OU=local,DC=com',
        'user_query' => '(&(uid=%1$s))',
        'options' => array (
          17 => 3,
          8 => 0,
        ),
        'start_tls' => false,
        'debug' => true,
        'servers' => array (
        ),
    ),
    
    <?xml version="1.0" encoding="UTF-8"?>
    

    <parameters>
    <itop_url>https://local/</itop_url>
    <itop_login>itop-ldap-data-collector</itop_login>
    <itop_password>itop-ldap-data-collector#R6</itop_password>
    <itop_token>
    <itop_login_mode>
    <synchro_user>srv-iTop-ldap</synchro_user>
    <ldapuri>ldap://AD-IP:389</ldapuri>
    <ldapdn>DC=local,DC=com</ldapdn>
    <ldaplogin>CN=srv-iTop-ldap,OU=usr,OU=local,DC=com</ldaplogin>
    <ldappassword>pwd</ldappassword>
    <page_size>1000</page_size></itop_login_mode></itop_token></parameters>

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2024-01-15

    You're asking 2 different things.

    For the authentication in iTop (authent-ldap):

    Mind that 389 is not encrypted; in the end port 636 (SSL/TLS enabled) would bemore secure. Does it literally givve you a "local IP"? What exactly do you specify? You can always try to make the host more specific: ldaps://ldap.demo.com:636

    For 636, start_tls may be necessary.

    Are you only struggling when using the API, or also when trying to sign in to iTop?


    For the LDAP data collector:

    There's at least some form of issue with an untrusted SSL certificate (it seems for iTop)? You should be able to ignore this kind of error. Alternatively, make sure your web server trusts this SSL certificate.

     
    • janis

      janis - 2024-01-20

      thx for answer! when trying to sign in to iTop with LDAP user

      and

      log file:

      ldap_authentication: bad LDAP server configuration: 'local-IP' not found | IssueLog |||

       
      • Jeffrey Bostoen

        Jeffrey Bostoen - 2024-01-21

        SO, are you sure "local-IP" can be reached by the iTop web server; and the ports are open?

         
        • janis

          janis - 2024-01-24

          Yes, Local-IP reached iTop server, what port 389?

           
  • janis

    janis - 2024-01-24

    root@debian:/var/www/html/extensions/ldap-data-collector# php collectors/bin/ldap-test.php
    List of the attributes to retrieve (taken from the mapping):
    samaccountname,sn,givenname,mail,telephonenumber,mobile,title,employeenumber,memberof
    Use --attributes=x,y,z to retrieve x, y and z instead. Use --attributes=* to retrieve all fields.
    [2024-01-24 21:20:09] [Debug] ldap_bind() Ok.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.