]> git.sur5r.net Git - openldap/commitdiff
Add SLAP_MOD_INTERNAL flag on mod ops if it's defined
authorHoward Chu <hyc@openldap.org>
Sat, 4 Jun 2005 09:57:27 +0000 (09:57 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 4 Jun 2005 09:57:27 +0000 (09:57 +0000)
contrib/slapd-modules/smbk5pwd/smbk5pwd.c

index 13879166971dd01c490a933aada064e60791fc5e..1f0c57eb72d0dea95706e6404e0c24e608bcd2cd 100644 (file)
@@ -373,6 +373,9 @@ static int smbk5pwd_exop_passwd(
 
                ml->sml_desc = ad_krb5Key;
                ml->sml_op = LDAP_MOD_REPLACE;
+#ifdef SLAP_MOD_INTERNAL
+               ml->sml_flags = SLAP_MOD_INTERNAL;
+#endif
                ml->sml_values = keys;
                ml->sml_nvalues = NULL;
                
@@ -382,6 +385,9 @@ static int smbk5pwd_exop_passwd(
                
                ml->sml_desc = ad_krb5KeyVersionNumber;
                ml->sml_op = LDAP_MOD_REPLACE;
+#ifdef SLAP_MOD_INTERNAL
+               ml->sml_flags = SLAP_MOD_INTERNAL;
+#endif
                ml->sml_values = ch_malloc( 2 * sizeof(struct berval));
                ml->sml_values[0].bv_val = ch_malloc( 64 );
                ml->sml_values[0].bv_len = sprintf(ml->sml_values[0].bv_val,
@@ -430,6 +436,9 @@ static int smbk5pwd_exop_passwd(
                
                ml->sml_desc = ad_sambaNTPassword;
                ml->sml_op = LDAP_MOD_REPLACE;
+#ifdef SLAP_MOD_INTERNAL
+               ml->sml_flags = SLAP_MOD_INTERNAL;
+#endif
                ml->sml_values = keys;
                ml->sml_nvalues = NULL;
 
@@ -454,6 +463,9 @@ static int smbk5pwd_exop_passwd(
                
                ml->sml_desc = ad_sambaLMPassword;
                ml->sml_op = LDAP_MOD_REPLACE;
+#ifdef SLAP_MOD_INTERNAL
+               ml->sml_flags = SLAP_MOD_INTERNAL;
+#endif
                ml->sml_values = keys;
                ml->sml_nvalues = NULL;
 
@@ -472,6 +484,9 @@ static int smbk5pwd_exop_passwd(
                
                ml->sml_desc = ad_sambaPwdLastSet;
                ml->sml_op = LDAP_MOD_REPLACE;
+#ifdef SLAP_MOD_INTERNAL
+               ml->sml_flags = SLAP_MOD_INTERNAL;
+#endif
                ml->sml_values = keys;
                ml->sml_nvalues = NULL;
        }