summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-10-17 11:32:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:44:51 -0500
commit374ced5ab0b03bc84f5144822e28a1dab31ece4f (patch)
tree7573cad01e9e1d64143ae71f6205eb553598da6c /source4
parent70e73a45d9e473777eb3eecbd3babc397292da71 (diff)
downloadsamba-374ced5ab0b03bc84f5144822e28a1dab31ece4f.tar.gz
samba-374ced5ab0b03bc84f5144822e28a1dab31ece4f.tar.bz2
samba-374ced5ab0b03bc84f5144822e28a1dab31ece4f.zip
r11112: listen on the global catalog ldap server port as well if we are a
PDC. I suspect we should behave slightly differently on the two ports, but this is a lot closer than not listening at all. When creating a user with mmc the global catalog port is used to check for an existing user (This used to be commit f8430c3f41313d0a71cea23e1a2ef98f088aff44)
Diffstat (limited to 'source4')
-rw-r--r--source4/ldap_server/ldap_server.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c
index dac7feecfb..d9631573c7 100644
--- a/source4/ldap_server/ldap_server.c
+++ b/source4/ldap_server/ldap_server.c
@@ -462,6 +462,17 @@ static NTSTATUS add_socket(struct event_context *event_context,
}
}
+ /* if we are a PDC, then also enable the global catalog server port, 3268 */
+ if (lp_server_role() == ROLE_DOMAIN_PDC) {
+ port = 3268;
+ status = stream_setup_socket(event_context, model_ops, &ldap_stream_ops,
+ "ipv4", address, &port, ldap_service);
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(0,("ldapsrv failed to bind to %s:%u - %s\n",
+ address, port, nt_errstr(status)));
+ }
+ }
+
return status;
}