s4-ldap: added DSDB_CONTROL_NO_GLOBAL_CATALOG to ldap encoding list
authorAndrew Tridgell <tridge@samba.org>
Thu, 29 Sep 2011 21:08:15 +0000 (07:08 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 4 Oct 2011 04:08:58 +0000 (15:08 +1100)
also remove all the duplicated comments

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/libcli/ldap/ldap_controls.c

index 8405a031425556bf82f90756cca91f647bc0d1cb..9ee4b26ae98861e0b8961491f8fdbbe87d4b66aa 100644 (file)
@@ -1159,40 +1159,29 @@ static const struct ldap_control_handler ldap_known_controls[] = {
        { LDB_CONTROL_RELAX_OID, decode_flag_request, encode_flag_request },
        { DSDB_OPENLDAP_DEREFERENCE_CONTROL, decode_openldap_dereference, encode_openldap_dereference },
 
-/* DSDB_CONTROL_CURRENT_PARTITION_OID is internal only, and has no network representation */
+       /* the following are internal only, with a network
+          representation */
+       { DSDB_CONTROL_BYPASS_PASSWORD_HASH_OID, decode_flag_request, encode_flag_request },
+
+       /* all the ones below are internal only, and have no network
+        * representation */
        { DSDB_CONTROL_CURRENT_PARTITION_OID, NULL, NULL },
-/* DSDB_CONTROL_REPLICATED_UPDATE_OID is internal only, and has no network representation */
        { DSDB_CONTROL_REPLICATED_UPDATE_OID, NULL, NULL },
-/* DSDB_CONTROL_DN_STORAGE_FORMAT_OID is internal only, and has no network representation */
        { DSDB_CONTROL_DN_STORAGE_FORMAT_OID, NULL, NULL },
-/* LDB_CONTROL_RECALCULATE_SD_OID is internal only, and has no network representation */
        { LDB_CONTROL_RECALCULATE_SD_OID, NULL, NULL },
-/* LDB_CONTROL_REVEAL_INTERNALS is internal only, and has no network representation */
        { LDB_CONTROL_REVEAL_INTERNALS, NULL, NULL },
-/* LDB_CONTROL_AS_SYSTEM_OID is internal only, and has no network representation */
        { LDB_CONTROL_AS_SYSTEM_OID, NULL, NULL },
-/* DSDB_CONTROL_PASSWORD_CHANGE_STATUS_OID is internal only, and has no network representation */
        { DSDB_CONTROL_PASSWORD_CHANGE_STATUS_OID, NULL, NULL },
-/* DSDB_CONTROL_PASSWORD_HASH_VALUES_OID is internal only, and has no network representation */
        { DSDB_CONTROL_PASSWORD_HASH_VALUES_OID, NULL, NULL },
-/* DSDB_CONTROL_PASSWORD_CHANGE_OID is internal only, and has no network representation */
        { 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 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 */
        { DSDB_CONTROL_CHANGEREPLMETADATA_OID, NULL, NULL },
-/* LDB_CONTROL_PROVISION_OID is internal only, and has no network representation */
        { LDB_CONTROL_PROVISION_OID, NULL, NULL },
-/* DSDB_EXTENDED_REPLICATED_OBJECTS_OID is internal only, and has no network representation */
        { DSDB_EXTENDED_REPLICATED_OBJECTS_OID, NULL, NULL },
-/* DSDB_EXTENDED_SCHEMA_UPDATE_NOW_OID is internal only, and has no network representation */
        { DSDB_EXTENDED_SCHEMA_UPDATE_NOW_OID, NULL, NULL },
-/* DSDB_EXTENDED_ALLOCATE_RID_POOL is internal only, and has no network representation */
        { DSDB_EXTENDED_ALLOCATE_RID_POOL, NULL, NULL },
+       { DSDB_CONTROL_NO_GLOBAL_CATALOG, NULL, NULL },
        { NULL, NULL, NULL }
 };