This article is a mirror article of machine translation, please click here to jump to the original article.

View: 8290|Reply: 2

[linux] Linux tests LDAP connectivity using the Curl command

[Copy link]
Posted on 11/28/2021 8:41:36 AM | | | |
LDAP access URL format

ldap://hostname:port/base_dn?attributes?scope?filter

  • base_dn: The default is root DN
  • attributes: 格式是逗号分开的属性名,例如"cn,mail,telephoneNumber",缺省是所有属性。
  • scope: 可以有三个选项,缺省是base
  • base: Queries only the specified nodes base_dn
  • one: Only the direct child nodes of the base_dn are found, and the base_dn itself is not included.
  • sub: Query all subnodes at all levels of the base_dn, including the base_dn itself.
  • filter: 过滤条件,缺省是(objectClass=*)

review

LdapErr: DSID-0C09042A, comment: AcceptSecurityContext error, data 52e, v3839
https://www.itsvse.com/thread-10173-1-1.html

OpenLDAP custom objectclass and properties
https://www.itsvse.com/thread-9279-1-1.html

OpenLDAP Series (3) OpenLDAP commands are explained in detail
https://www.itsvse.com/thread-9276-1-1.html

OpenLDAP:Failed to start OpenLDAP Server Daemon.
https://www.itsvse.com/thread-9275-1-1.html

OpenLDAP Series (2) Centos 7 Installation OpenLDAP Tutorial
https://www.itsvse.com/thread-9274-1-1.html

OpenLDAP Series (1) Introduction to LDAP
https://www.itsvse.com/thread-9273-1-1.html

example


If you omit base_dn, use root dn


Only check the attribute postalAddress


Check multiple properties


Use filters


Only direct child nodes are checked



Query a user's information




Previous:Install the Redis extension based on Docker php:5.6.40-fpm image
Next:Linux systemd service manager explained in detail
 Landlord| Posted on 11/30/2021 9:31:31 PM |
Active Directory: LDAP Syntax Filter:https://social.technet.microsoft ... syntax-filters.aspx
Posted on 5/19/2023 1:41:52 PM |
Good post, I studied~
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com