mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
For LDAP_PROTO_IPC set the SASL EXTERNAL authid to allow the mech to be
used by the client side. Please review.
This commit is contained in:
parent
db98e44d6a
commit
cf6a9d9d0f
@ -353,6 +353,15 @@ ldap_int_open_connection(
|
|||||||
ldap_int_sasl_open( ld, conn, sasl_host, sasl_ssf );
|
ldap_int_sasl_open( ld, conn, sasl_host, sasl_ssf );
|
||||||
LDAP_FREE( sasl_host );
|
LDAP_FREE( sasl_host );
|
||||||
}
|
}
|
||||||
|
/* sasl_ssf is set redundantly. Should probably remove it from
|
||||||
|
* the ldap_int_sasl_open call since the TLS ssf isn't known
|
||||||
|
* yet anyway.
|
||||||
|
*/
|
||||||
|
if( proto == LDAP_PROTO_IPC ) {
|
||||||
|
char authid[64];
|
||||||
|
sprintf( authid, "uid=%d+gid=%d", geteuid(), getegid() );
|
||||||
|
ldap_int_sasl_external( ld, conn, authid, sasl_ssf );
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_TLS
|
#ifdef HAVE_TLS
|
||||||
|
Loading…
Reference in New Issue
Block a user