summaryrefslogtreecommitdiff
path: root/source4/ldap_server/ldap_server.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-29 08:55:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:50 -0500
commit53562f774662eda06563870bb7daf857df01590f (patch)
tree022eff0d76d84d7ad08c40f0d2ed4b97afc78bba /source4/ldap_server/ldap_server.c
parent4ccadc164e144085de4ace0dc5f3f40719fdc527 (diff)
downloadsamba-53562f774662eda06563870bb7daf857df01590f.tar.gz
samba-53562f774662eda06563870bb7daf857df01590f.tar.bz2
samba-53562f774662eda06563870bb7daf857df01590f.zip
r11955: got rid of the old rootDSE code in the ldap server.
The partitioning logic is still there, but we only have one partition. If we need partitioning in the future it might be better to remove this partitioning code and use a partitioning module instead (This used to be commit f4685e7dc9bdc3b9e240c9f5891b9da9251f82e5)
Diffstat (limited to 'source4/ldap_server/ldap_server.c')
-rw-r--r--source4/ldap_server/ldap_server.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c
index b74bec0b1b..11ee72d989 100644
--- a/source4/ldap_server/ldap_server.c
+++ b/source4/ldap_server/ldap_server.c
@@ -280,7 +280,6 @@ static void ldapsrv_send(struct stream_connection *c, uint16_t flags)
*/
static void ldapsrv_accept(struct stream_connection *c)
{
- struct ldapsrv_partition *rootDSE_part;
struct ldapsrv_partition *part;
struct ldapsrv_service *ldapsrv_service =
talloc_get_type(c->private, struct ldapsrv_service);
@@ -328,21 +327,6 @@ static void ldapsrv_accept(struct stream_connection *c)
goto done;
}
- rootDSE_part = talloc(conn, struct ldapsrv_partition);
- if (rootDSE_part == NULL) {
- ldapsrv_terminate_connection(conn, "talloc failed");
- }
-
- rootDSE_part->base_dn = ""; /* RootDSE */
- rootDSE_part->ops = ldapsrv_get_rootdse_partition_ops();
- if (!NT_STATUS_IS_OK(rootDSE_part->ops->Init(rootDSE_part, conn))) {
- ldapsrv_terminate_connection(conn, "rootDSE Init failed");
- goto done;
- }
-
- conn->rootDSE = rootDSE_part;
- DLIST_ADD_END(conn->partitions, rootDSE_part, struct ldapsrv_partition *);
-
part = talloc(conn, struct ldapsrv_partition);
if (part == NULL) {
ldapsrv_terminate_connection(conn, "talloc failed");