From 18714cee18cce1c38d1c61c1f0e1860421f59da7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 4 Jun 2005 09:57:27 +0000 Subject: [PATCH] Add SLAP_MOD_INTERNAL flag on mod ops if it's defined --- contrib/slapd-modules/smbk5pwd/smbk5pwd.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/contrib/slapd-modules/smbk5pwd/smbk5pwd.c b/contrib/slapd-modules/smbk5pwd/smbk5pwd.c index 1387916697..1f0c57eb72 100644 --- a/contrib/slapd-modules/smbk5pwd/smbk5pwd.c +++ b/contrib/slapd-modules/smbk5pwd/smbk5pwd.c @@ -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; } -- 2.39.5