summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2005-06-08 19:49:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:50 -0500
commit7fc1c3553cd3666c234ec302a54ebd331589c934 (patch)
treea765fb95406b0758ab70f157f3084928bd0ecd6f /source4/lib/ldb/include
parent40c2e3e6a1014be7919b03a92b3b3274bb2fe69e (diff)
downloadsamba-7fc1c3553cd3666c234ec302a54ebd331589c934.tar.gz
samba-7fc1c3553cd3666c234ec302a54ebd331589c934.tar.bz2
samba-7fc1c3553cd3666c234ec302a54ebd331589c934.zip
r7408: added DN explode function, based on simo's ldap_parse_dn() function. simo, when you get a chance, please change your license so this can be linked with ldb.
(This used to be commit 588a1d1451d4117cb6e427a293455f2a5657b604)
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r--source4/lib/ldb/include/ldb_explode_dn.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb_explode_dn.h b/source4/lib/ldb/include/ldb_explode_dn.h
new file mode 100644
index 0000000000..fb34be8b87
--- /dev/null
+++ b/source4/lib/ldb/include/ldb_explode_dn.h
@@ -0,0 +1,38 @@
+/*
+ Unix SMB/CIFS implementation.
+ LDAP server
+ Copyright (C) Simo Sorce 2004
+ Copyright (C) Derrell Lipman 2005
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+struct ldb_dn_attribute {
+ char * rdn;
+ char * name;
+ char * value;
+};
+
+struct ldb_dn_component {
+ char * component;
+ int attr_num;
+ struct ldb_dn_attribute ** attributes;
+};
+
+struct ldb_dn {
+ char *dn;
+ int comp_num;
+ struct ldb_dn_component ** components;
+};