[Samba] ADS join / Name vs. IP
Christof Musik
musik at bitbone.de
Tue Sep 18 13:01:47 GMT 2007
Hi
I have a little problem to get Samba 3.0.26a to work with a w2k3 ad. If
I try to connect to it I get an "Failed to join domain: Operations
error". With debug I can see that samba tries to connect to the ldap
server. But instead using the IP address it's using the name.
Could not open LDAP connection to win1.test.ads.local:389: Connection refused
In my enviroment, this couldn't be resolved to an IP and so the whole
domain join failed.
I changed the one line in source/libads/ldap.c to use the IP and
everything worked.
--- ldap.c.orig 2007-09-18 14:39:26.000000000 +0200
+++ ldap.c 2007-09-18 14:39:29.000000000 +0200
@@ -427,7 +427,7 @@
/* Otherwise setup the TCP LDAP session */
- if ( (ads->ld = ldap_open_with_timeout(ads->config.ldap_server_name,
+ if ( (ads->ld = ldap_open_with_timeout(inet_ntoa(ads->ldap_ip),
LDAP_PORT, lp_ldap_timeout())) == NULL )
{
return ADS_ERROR(LDAP_OPERATIONS_ERROR);
At least in 3.0.22 there was something similar. Is there a reason why
the name is used?
Regards,
Christof Musik
--
* bitbone AG Tel: +49(0)931-250993-0
* Martin-Luther-Strasse 5 a Fax: +49(0)931-250993-99
* D-97072 Würzburg/Germany http://www.bitbone.de
*******************************************************
Systems 2007, 23. bis 26. Oktober 2007 in München
Open Source Themenpark, Halle B2, Stand 110-33
Geschäftsbereich 8Soft:
Kaspersky Partnerstand, IT-Security Halle B3, Stand 501
Informationen: http://www.bitbone.de/bitbone/events
*******************************************************
Sitz der Gesellschaft: Würzburg
Handelsregister: Amtsgericht Würzburg HRB-7457
Aufsichtsratsvorsitzender: RA Axel Conzelmann
Vorstand: Wolfgang Schuster, Sebastian Scheuring
Thomas Sprickmann Kerkerinck
Ust-IdNr. DE216268143
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/samba/attachments/20070918/1ce23789/attachment.bin
More information about the samba
mailing list