Welcome to the Linux Foundation Forum!

openldap-clients package

Hi,

In chapter 29 it's referred to the openldap-clients package which I cannot find on my Debian system. Is this package specific to RedHat-based systems (I find references which suggest that)? Are the ldap-utils the replacement I should use for Debian?

┌──(alu@nb)-[~]
└─$ apt info ldap-utils
Package: ldap-utils
Version: 2.5.13+dfsg-5
Priority: optional
Section: net
Source: openldap
Maintainer: Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Installed-Size: 780 kB
Provides: ldap-client, openldap-utils
Depends: libc6 (>= 2.34), libldap-2.5-0 (= 2.5.13+dfsg-5), libsasl2-2 (>= 2.1.28+dfsg)
Suggests: libsasl2-modules, libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal
Conflicts: ldap-client, openldap-utils, umich-ldap-utils
Replaces: openldap-utils, openldapd, slapd (<< 2.2.23-0.pre6)
Homepage: https://www.openldap.org/
Tag: implemented-in::c, interface::commandline, network::client,
 protocol::kerberos, protocol::ldap, role::program, scope::utility,
 works-with::db
Download-Size: 144 kB
APT-Sources: http://deb.debian.org/debian bookworm/main amd64 Packages
Description: OpenLDAP utilities
 This package provides utilities from the OpenLDAP (Lightweight
 Directory Access Protocol) package. These utilities can access a
 local or remote LDAP server and contain all the client programs
 required to access LDAP servers.

Thanks,
Urs

Answers

  • luisviveropena
    luisviveropena Posts: 1,249

    Hi Urs,

    In chapter 29 it's referred to the openldap-clients package which I cannot find on my Debian system. Is >this package specific to RedHat-based systems (I find references which suggest that)?

    Yes, that's specified in step 1 of Lab 29.2

    Are the ldap-utils the replacement I should use for Debian?

    That's correct. After installed, do "ldap" and press the tab key. You will see the ldap tools:

    ubuntu@master:~$ ldap
    ldapadd ldapdelete ldapmodify ldappasswd ldapurl
    ldapcompare ldapexop ldapmodrdn ldapsearch ldapwhoami

    Regards,
    Luis.

  • albiurs
    albiurs Posts: 51

    Hi Luis,

    Great, thank you.

    Regards,
    Urs

  • albiurs
    albiurs Posts: 51
    edited October 28

    Hi Luis,

    Thank you for your answer. I just installed the ldap-utils package. However, after the install the command ldap returns:
    bash: ldap: command not found.

    But the utilities got installed anyway:

    ┌──(alu@nb)-[~]
    └─$ man -k ldap
    ldap.conf (5)        - LDAP configuration file/environment variables
    ldapadd (1)          - LDAP modify entry and LDAP add entry tools
    ldapcompare (1)      - LDAP compare tool
    ldapdelete (1)       - LDAP delete entry tool
    ldapexop (1)         - issue LDAP extended operations
    ldapmodify (1)       - LDAP modify entry and LDAP add entry tools
    ldapmodrdn (1)       - LDAP rename entry tool
    ldappasswd (1)       - change the password of an LDAP entry
    ldapsearch (1)       - LDAP search tool
    ldapurl (1)          - LDAP URL formatting tool
    ldapwhoami (1)       - LDAP who am i? tool
    ldif (5)             - LDAP Data Interchange Format
    URI::ldap (3pm)      - LDAP Uniform Resource Locators
    

    Do you have other LDAP-related packages installed on your system which allows the command ldap to return the installed LDAP utilities?

    Regards,
    Urs

  • luisviveropena
    luisviveropena Posts: 1,249

    Hi Urs,

    Do you have other LDAP-related packages installed on your system which allows the command ldap to >return the installed LDAP utilities?

    No, that's ok, you got the needed packages installed. I was using auto completion in bash, but "ldap" alone won't run anything.

    So you are good to go forward with the lab.

    Regards,
    Luis.

  • albiurs
    albiurs Posts: 51

    Perfect, thanks.

    Regards,
    Urs

Categories

Upcoming Training