Menu

Ldap authentication failing

2023-10-20
2023-10-20
  • Shadowtech87

    Shadowtech87 - 2023-10-20

    I have gotten the Data Collector for LDAP setup and imported my AD users in the system as basic portal users.

    I am now trying to use the LDAP authentication. Every time i try to log in i get an error that the "user is not found in LDAP."

    I have updated the authent-ldap settings in the config editor, and right now just trying to get it to work on regular LDAP. Will try to tackle LDAPS next.

    'authent-ldap' => array (
        'host' => '172.X.X.X',
        'port' => 389,
        'default_user' => '',
        'default_pwd' => '',
        'base_dn' => 'DC=DOMAIN_NAME,DC=org',
        'user_query' => '(SamAccountName=%1$s)',
        'options' => array (
          17 => 3,
          8 => 0,
        ),
        'start_tls' => false,
        'debug' => true,
        'servers' => array (
        ),
    ),
    

    Both my iTop server - ubunutu 20.04 and the AD DC are on the same vlan and i have verified that the domain controller is not blocking anything inbound right now from this server.

    If i use powershell on the DC it returns the user.
    Get-ADUser -LDAPFilter '(samaccountname=USERNAME)'

    Any ideas on where to look. I'll admit I am a linux newbie so perhaps i overlooked something basic.

     
  • Shadowtech87

    Shadowtech87 - 2023-10-20

    also in case this helps, here are the php modules i have installed

    php -m

    [PHP Modules]
    calendar
    Core
    ctype
    curl
    date
    dom
    exif
    FFI
    fileinfo
    filter
    ftp
    gd
    gettext
    hash
    iconv
    json
    ldap
    libxml
    mbstring
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    Phar
    posix
    readline
    Reflection
    session
    shmop
    SimpleXML
    soap
    sockets
    sodium
    SPL
    standard
    sysvmsg
    sysvsem
    sysvshm
    tokenizer
    xml
    xmlreader
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib

    [Zend Modules]
    Zend OPcache

     
  • Shadowtech87

    Shadowtech87 - 2023-10-20

    ok so solved my own problem, i could have sworn that i read somewhere that you didnt need to provide the default user/pwd.

    after adding that its working

     
    🎉
    1

Log in to post a comment.