summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-08-19 03:17:03 +0000
committerAndrew Tridgell <tridge@samba.org>2002-08-19 03:17:03 +0000
commit4b1baa5a70964e94ecc4733a9f8cd3f318c758ea (patch)
tree5fcde1f2eadb9c65dcf66ff4bb15a88b5d6ed4ba /source3/libsmb
parent2b93ecc90b79d95455b19e46082f1b0039b71e35 (diff)
downloadsamba-4b1baa5a70964e94ecc4733a9f8cd3f318c758ea.tar.gz
samba-4b1baa5a70964e94ecc4733a9f8cd3f318c758ea.tar.bz2
samba-4b1baa5a70964e94ecc4733a9f8cd3f318c758ea.zip
added a 'net ads lookup' command that does a CLDAP NetLogon query to a
win2000 server. It does seem to work, and win200 sends us a valid reply, but we don't parse it yet. Maybe tomorrow :) (This used to be commit 6352508c54cee333ed7c0e3ebc372be7cd60ed62)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/asn1.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/libsmb/asn1.c b/source3/libsmb/asn1.c
index b4ad3ad0b8..c8f832f3df 100644
--- a/source3/libsmb/asn1.c
+++ b/source3/libsmb/asn1.c
@@ -174,6 +174,16 @@ BOOL asn1_write_BOOLEAN(ASN1_DATA *data, BOOL v)
return !data->has_error;
}
+/* write a BOOLEAN - hmm, I suspect this one is the correct one, and the
+ above boolean is bogus. Need to check */
+BOOL asn1_write_BOOLEAN2(ASN1_DATA *data, BOOL v)
+{
+ asn1_push_tag(data, ASN1_BOOLEAN);
+ asn1_write_uint8(data, v);
+ asn1_pop_tag(data);
+ return !data->has_error;
+}
+
/* check a BOOLEAN */
BOOL asn1_check_BOOLEAN(ASN1_DATA *data, BOOL v)
{