We should have them just in one place, so that we don't forget some of them.
metze
return LDB_SUCCESS;
}
-static const char *secret_attributes[] = {
- "currentValue",
- "dBCSPwd",
- "initialAuthIncoming",
- "initialAuthOutgoing",
- "lmPwdHistory",
- "ntPwdHistory",
- "priorValue",
- "supplementalCredentials",
- "trustAuthIncoming",
- "trustAuthOutgoing",
- "unicodePwd",
+static const char * const secret_attributes[] = {
+ DSDB_SECRET_ATTRIBUTES,
NULL
};
#define DSDB_PROVISION 0x0800
bool is_attr_in_list(const char * const * attrs, const char *attr);
+
+#define DSDB_SECRET_ATTRIBUTES \
+ "currentValue", \
+ "dBCSPwd", \
+ "initialAuthIncoming", \
+ "initialAuthOutgoing", \
+ "lmPwdHistory", \
+ "ntPwdHistory", \
+ "priorValue", \
+ "supplementalCredentials", \
+ "trustAuthIncoming", \
+ "trustAuthOutgoing", \
+ "unicodePwd"