summaryrefslogtreecommitdiff
path: root/source4/ldap_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-10-12 06:30:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:42 -0500
commit33da2fabe6c3b1e20a955d72e1ebd0e850751df0 (patch)
tree4ea80e8517186e41515011b97b0dd7d77b5554c7 /source4/ldap_server
parenta599edf04cbdeef9014923ba0d3713b8ff84f266 (diff)
downloadsamba-33da2fabe6c3b1e20a955d72e1ebd0e850751df0.tar.gz
samba-33da2fabe6c3b1e20a955d72e1ebd0e850751df0.tar.bz2
samba-33da2fabe6c3b1e20a955d72e1ebd0e850751df0.zip
r10914: moved the ldap time string functions into ldb so they can be used by
the time attribute handling functions (This used to be commit 93c296d52718e77f8b702e1721b548eaadc56c76)
Diffstat (limited to 'source4/ldap_server')
-rw-r--r--source4/ldap_server/ldap_rootdse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ldap_server/ldap_rootdse.c b/source4/ldap_server/ldap_rootdse.c
index 93d39fa155..81a9626f14 100644
--- a/source4/ldap_server/ldap_rootdse.c
+++ b/source4/ldap_server/ldap_rootdse.c
@@ -90,7 +90,7 @@ static NTSTATUS fill_dynamic_values(void *mem_ctx, struct ldb_message_element *a
{
int num_currentTime = 1;
DATA_BLOB *currentTime = talloc_array(mem_ctx, DATA_BLOB, num_currentTime);
- char *str = ldap_timestring(mem_ctx, time(NULL));
+ char *str = ldb_timestring(mem_ctx, time(NULL));
NT_STATUS_HAVE_NO_MEMORY(str);
currentTime[0].data = (uint8_t *)str;
currentTime[0].length = strlen(str);
@@ -316,7 +316,7 @@ static NTSTATUS rootdse_Search(struct ldapsrv_partition *partition, struct ldaps
for (j=0; j < ent->num_attributes; j++) {
if (ent->attributes[j].num_values == 1 &&
ent->attributes[j].values[0].length >= 9 &&
- strncmp(ent->attributes[j].values[0].data, "_DYNAMIC_", 9) == 0) {
+ strncmp((char *)ent->attributes[j].values[0].data, "_DYNAMIC_", 9) == 0) {
status = fill_dynamic_values(ent->attributes, &(ent->attributes[j]));
if (!NT_STATUS_IS_OK(status)) {
return status;