hi list,
we want to migrate all our users from smbpasswd into ldap, but first
test it so the current samba server in production should not be
changed. to achieve this i created a smb.conf file with the following
content:
--- [smb.conf]
[global]
workgroup = mpi
netbios name = sandy01
netbios aliases = sandy02 sandy03
interfaces = 10.4.0.106/255.255.0.0
bind interfaces only = yes
socket address = 10.4.0.106
encrypt passwords = yes
debug level = 2
wins server = 10.5.0.17
nt acl support = no
ldap admin dn = cn=Admin,dc=biochem,dc=mpg,dc=de
ldap group suffix = ou=group
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Machines
ldap suffix = dc=biochem,dc=mpg,dc=de
ldap user suffix = ou=people
passdb backend = ldapsam:ldap://ldapserver.biochem.mpg.de:389/
---[end of smb.conf]
but executing pdbedit results in an error because pdbedit tries to
connect the ldap server "localhost":
---
sandy01:/usr/local/samba/private # pdbedit -i smbpasswd -e ldapsam -s
/usr/local/samba/lib/smb.conf smbldap_search_domain_info: Searching
for:[(&(objectClass=sambaDomain)(sambaDomainName=SANDY01))]
smbldap_open_connection: connection opened
smbldap_search_domain_info: Searching
for:[(&(objectClass=sambaDomain)(sambaDomainName=SANDY01))]
smbldap_open_connection: connection opened
smbldap_search_domain_info: Searching
for:[(&(objectClass=sambaDomain)(sambaDomainName=SANDY01))]
smbldap_open_connection: connection opened
failed to bind to server ldap://localhost with
dn="cn=Admin,dc=biochem,dc=mpg,dc=de"
Error: Can't contact LDAP server
(unknown)
Connection to LDAP server failed for the 1 try!
smbldap_open_connection: connection opened
failed to bind to server ldap://localhost with
dn="cn=Admin,dc=biochem,dc=mpg,dc=de"
Error: Can't contact LDAP server
(unknown)
Connection to LDAP server failed for the 2 try!
smbldap_open_connection: connection opened
failed to bind to server ldap://localhost with
dn="cn=Admin,dc=biochem,dc=mpg,dc=de"
Error: Can't contact LDAP server
(unknown)
Connection to LDAP server failed for the 3 try!
------
where do i set the name of the ldapserver? i also tried
passdb backend = ldapsam:ldap://10.251.0.16:389/
and
ldap server = ldapserv.biochem.mpg.de
but without change! the ldapserver can be reached by both "ping" and
"ldapsearch" via the console (but as pdbedit does not seem to try to
connect to it this does not matter now).
any hints are appreciated!
thanks in advance!
markus
+-----------------------------------------------------------------+
| Markus Krause, Mogli-Soft |
| Support for Mac OS X, Webmail/Horde, LDAP, RADIUS, MySQL |
| by order of the |
| Computing Center of the Max-Planck-Institute of Biochemistry |
+--------------------------------+--------------------------------+
| E-Mail: [EMAIL PROTECTED] | Tel.: 089 - 89 40 85 99 |
| [EMAIL PROTECTED] | Fax.: 089 - 89 40 85 98 |
| Skype: markus.krause | iChat: [EMAIL PROTECTED] |
+--------------------------------+--------------------------------+
----------------------------------------------------------------------
This message was sent using https://webmail2.biochem.mpg.de
If you encounter any problems please report to [EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba