From: Nick Porter Date: Tue, 11 Apr 2023 14:40:00 +0000 (+0100) Subject: Clarify LDAP bind related structure member comments X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=415f6846cd021a08df700384a51443d86e27ac6b;p=thirdparty%2Ffreeradius-server.git Clarify LDAP bind related structure member comments The same structures are used for admin binds and user binds, but some elements are only used in admin binds. --- diff --git a/src/lib/ldap/base.h b/src/lib/ldap/base.h index 613f7bc42a4..97611765861 100644 --- a/src/lib/ldap/base.h +++ b/src/lib/ldap/base.h @@ -485,20 +485,20 @@ typedef struct fr_ldap_referral_s { * */ typedef struct { - fr_ldap_connection_t *c; //!< to bind. + fr_ldap_connection_t *c; //!< to bind. Only used when binding as admin user. char const *bind_dn; //!< of the user, may be NULL to bind anonymously. char const *password; //!< of the user, may be NULL if no password is specified. LDAPControl **serverctrls; //!< Controls to pass to the server. LDAPControl **clientctrls; //!< Controls to pass to the client (library). - int msgid; + int msgid; //!< Of the bind operation. Only used when binding as admin. } fr_ldap_bind_ctx_t; /** Holds arguments for the async SASL bind operation * */ typedef struct { - fr_ldap_connection_t *c; //!< to bind. + fr_ldap_connection_t *c; //!< to bind. Only used when binding as admin user. char const *mechs; //!< SASL mechanisms to run char const *dn; //!< to bind as. char const *identity; //!< of the user. @@ -508,7 +508,7 @@ typedef struct { LDAPControl **serverctrls; //!< Controls to pass to the server. LDAPControl **clientctrls; //!< Controls to pass to the client (library). - int msgid; //!< Last msgid. + int msgid; //!< Last msgid. Only used when binding as admin user. LDAPMessage *result; //!< Previous result. char const *rmech; //!< Mech we're continuing with. } fr_ldap_sasl_ctx_t;