summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-12-01 20:36:43 +0100
committerStefan Metzmacher <metze@samba.org>2010-12-13 15:32:04 +0100
commita762e9cab70f3ecc000b5dd20ce5f792963e8a52 (patch)
treed8fa41a01d3858ab2cd618a39eb46437066d51fd
parentb85a0d929718681cfaf5cdb6d9b30b47386773e0 (diff)
downloadsamba-a762e9cab70f3ecc000b5dd20ce5f792963e8a52.tar.gz
samba-a762e9cab70f3ecc000b5dd20ce5f792963e8a52.tar.bz2
samba-a762e9cab70f3ecc000b5dd20ce5f792963e8a52.zip
s4:ldap_controls: allow DSDB_CONTROL_BYPASS_PASSWORD_HASH_OID over sockets.
The DSDB_CONTROL_BYPASS_PASSWORD_HASH_OID control has to data attached to it. So we can allow it to be send over LDAP. We'll accept this control over the privileged ldapi socket only. metze
-rw-r--r--source4/libcli/ldap/ldap_controls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/ldap/ldap_controls.c b/source4/libcli/ldap/ldap_controls.c
index 6ded87a0ba..8405a03142 100644
--- a/source4/libcli/ldap/ldap_controls.c
+++ b/source4/libcli/ldap/ldap_controls.c
@@ -1179,8 +1179,8 @@ static const struct ldap_control_handler ldap_known_controls[] = {
{ DSDB_CONTROL_PASSWORD_CHANGE_OID, NULL, NULL },
/* DSDB_CONTROL_APPLY_LINKS is internal only, and has no network representation */
{ DSDB_CONTROL_APPLY_LINKS, NULL, NULL },
-/* DSDB_CONTROL_BYPASS_PASSWORD_HASH_OID is internal only, and has no network representation */
- { DSDB_CONTROL_BYPASS_PASSWORD_HASH_OID, NULL, NULL },
+/* DSDB_CONTROL_BYPASS_PASSWORD_HASH_OID is internal only, and has an empty network representation */
+ { DSDB_CONTROL_BYPASS_PASSWORD_HASH_OID, decode_flag_request, encode_flag_request },
/* LDB_CONTROL_BYPASS_OPERATIONAL_OID is internal only, and has no network representation */
{ LDB_CONTROL_BYPASS_OPERATIONAL_OID, NULL, NULL },
/* DSDB_CONTROL_CHANGEREPLMETADATA_OID is internal only, and has no network representation */