svn commit: samba r11112 - in
branches/SAMBA_4_0/source/ldap_server: .
tridge at samba.org
tridge at samba.org
Mon Oct 17 11:32:22 GMT 2005
Author: tridge
Date: 2005-10-17 11:32:20 +0000 (Mon, 17 Oct 2005)
New Revision: 11112
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11112
Log:
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
Modified:
branches/SAMBA_4_0/source/ldap_server/ldap_server.c
Changeset:
Modified: branches/SAMBA_4_0/source/ldap_server/ldap_server.c
===================================================================
--- branches/SAMBA_4_0/source/ldap_server/ldap_server.c 2005-10-17 11:27:29 UTC (rev 11111)
+++ branches/SAMBA_4_0/source/ldap_server/ldap_server.c 2005-10-17 11:32:20 UTC (rev 11112)
@@ -462,6 +462,17 @@
}
}
+ /* 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;
}
More information about the samba-cvs
mailing list