summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
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/dsdb/samdb
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/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/samdb.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c
index 6afa83e1aa..2e1ce9ecb5 100644
--- a/source4/dsdb/samdb/samdb.c
+++ b/source4/dsdb/samdb/samdb.c
@@ -909,19 +909,6 @@ int samdb_msg_set_string(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struc
}
/*
- set a ldaptime element in a message
-*/
-int samdb_msg_set_ldaptime(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct ldb_message *msg,
- const char *attr_name, time_t t)
-{
- char *str = ldap_timestring(mem_ctx, t);
- if (!str) {
- return -1;
- }
- return samdb_msg_set_string(sam_ldb, mem_ctx, msg, attr_name, str);
-}
-
-/*
add a record
*/
int samdb_add(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct ldb_message *msg)