diff options
author | Nathan Kinder <nkinder@redhat.com> | 2006-08-17 15:33:03 +0000 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2006-08-17 15:33:03 +0000 |
commit | 52ba2c0aceed9611e14ab9677e6e61f16b3acc11 (patch) | |
tree | edf2a84d476310bc05982408aa4312e9c3c016fb /ldap/servers/slapd/pblock.c | |
parent | a0b50187e70cb3a60a1ae70578dcaa53780d38ac (diff) | |
download | ds-52ba2c0aceed9611e14ab9677e6e61f16b3acc11.tar.gz ds-52ba2c0aceed9611e14ab9677e6e61f16b3acc11.tar.xz ds-52ba2c0aceed9611e14ab9677e6e61f16b3acc11.zip |
202872 - Allow password modify extended operation when using SASL privacy layer
Diffstat (limited to 'ldap/servers/slapd/pblock.c')
-rw-r--r-- | ldap/servers/slapd/pblock.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ldap/servers/slapd/pblock.c b/ldap/servers/slapd/pblock.c index d08a04f1..4a6bbca6 100644 --- a/ldap/servers/slapd/pblock.c +++ b/ldap/servers/slapd/pblock.c @@ -323,6 +323,16 @@ slapi_pblock_get( Slapi_PBlock *pblock, int arg, void *value ) (*(int *)value) = pblock->pb_conn->c_flags & CONN_FLAG_SSL; PR_Unlock( pblock->pb_conn->c_mutex ); break; + case SLAPI_CONN_SASL_SSF: + if (pblock->pb_conn == NULL) { + LDAPDebug( LDAP_DEBUG_ANY, + "Connection is NULL and hence cannot access SLAPI_CONN_SASL_SSF \n", 0, 0, 0 ); + return (-1); + } + PR_Lock( pblock->pb_conn->c_mutex ); + (*(int *)value) = pblock->pb_conn->c_sasl_ssf; + PR_Unlock( pblock->pb_conn->c_mutex ); + break; case SLAPI_CONN_CERT: if (pblock->pb_conn == NULL) { LDAPDebug( LDAP_DEBUG_ANY, |