summaryrefslogtreecommitdiff
path: root/source4/nbt_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/nbt_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/nbt_server')
-rw-r--r--source4/nbt_server/wins/winsdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/nbt_server/wins/winsdb.c b/source4/nbt_server/wins/winsdb.c
index ea56fece1d..e719ef0968 100644
--- a/source4/nbt_server/wins/winsdb.c
+++ b/source4/nbt_server/wins/winsdb.c
@@ -136,7 +136,7 @@ struct winsdb_record *winsdb_load(struct wins_server *winssrv,
rec->name = name;
rec->state = ldb_msg_find_int(res[0], "active", WINS_REC_RELEASED);
rec->nb_flags = ldb_msg_find_int(res[0], "nbFlags", 0);
- rec->expire_time = ldap_string_to_time(ldb_msg_find_string(res[0], "expires", NULL));
+ rec->expire_time = ldb_string_to_time(ldb_msg_find_string(res[0], "expires", NULL));
rec->registered_by = ldb_msg_find_string(res[0], "registeredBy", NULL);
rec->version = ldb_msg_find_uint64(res[0], "version", 0);
talloc_steal(rec, rec->registered_by);
@@ -187,7 +187,7 @@ static struct ldb_message *winsdb_message(struct wins_server *winssrv,
ret |= ldb_msg_add_fmt(msg, "nbFlags", "0x%04x", rec->nb_flags);
ret |= ldb_msg_add_string(msg, "registeredBy", rec->registered_by);
ret |= ldb_msg_add_string(msg, "expires",
- ldap_timestring(msg, rec->expire_time));
+ ldb_timestring(msg, rec->expire_time));
ret |= ldb_msg_add_fmt(msg, "version", "%llu", rec->version);
for (i=0;rec->addresses[i];i++) {
ret |= ldb_msg_add_string(msg, "address", rec->addresses[i]);