1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-10-26 19:57:22 +08:00
This commit is contained in:
stefanocasazza
2016-09-15 18:36:41 +02:00
parent a25cad5520
commit fc24169677
174 changed files with 1779 additions and 1652 deletions

View File

@@ -95,7 +95,7 @@ public:
char buffer[4096];
const char* attr_name[] = { username.c_str(), password.c_str(), 0 };
(void) snprintf(buffer, sizeof(buffer), "%s=%s,%.*s", subject_attr.c_str(), buf, U_STRING_TO_TRACE(LDAP_searchbase));
(void) u__snprintf(buffer, sizeof(buffer), U_CONSTANT_TO_PARAM("%v=%s,%.*s"), subject_attr.rep, buf, U_STRING_TO_TRACE(LDAP_searchbase));
n = ldap.search(buffer, LDAP_SCOPE_BASE, (char**)attr_name);