Re: [Samba] error while migrating users to ldap with pdbedit
Zitat von Volker Lendecke <[EMAIL PROTECTED]>: On Sat, Mar 24, 2007 at 10:31:16PM +0100, Volker Lendecke wrote: On Wed, Mar 21, 2007 at 08:08:22PM +0100, Volker Lendecke wrote: > Give me two or three days and I'll fix it. I'm just really > busy right now. Attached find the patch I checked in as revision 21962. This time with patch... Volker Hi Volker, thanks for the patch, but there seems to be a problem still. running pdbedit leeds to: sandy01:/usr/local/samba/lib # pdbedit -i smbpasswd -e ldapsam -s /usr/local/samba/lib/smb.conf.ldap smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=SANDY01))] smbldap_open_connection: connection opened add_new_domain_info: added: domain = SANDY01 in the LDAP database smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=SANDY01))] 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=Manager,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=Manager,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=Manager,dc=biochem,dc=mpg,dc=de" Error: Can't contact LDAP server (unknown) Connection to LDAP server failed for the 3 try! smbldap_open_connection: connection opened failed to bind to server ldap://localhost with dn="cn=Manager,dc=biochem,dc=mpg,dc=de" Error: Can't contact LDAP server (unknown) Connection to LDAP server failed for the 4 try! sandy01:/usr/local/samba/lib # i used the following smb.conf.ldap: --- smb.conf.ldap [global] netbios name = sandy01 netbios aliases = sandy01a sandy01b sandy01c 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=Manager,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://ldapserv.biochem.mpg.de:389/ --- end of smb.conf.ldap some things were created in ldap: sambaDomainName=SANDY01 so the connection to ldap actually is successfull, the ldap admin dn and the password must be correct also. but the further actions seem to be tried to localhost instead of ldapserv. any hints on how to solve this? regards 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
Re: [Samba] error while migrating users to ldap with pdbedit
On Sat, Mar 24, 2007 at 10:47:25PM +0100, Volker Lendecke wrote: > > Attached find the patch I checked in as revision 21962. > > This time with patch... Sorry for the confusion. Something has eaten the patch I did send the first time before it hit my inbox. Volker pgpt9rxUynDAM.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] error while migrating users to ldap with pdbedit
On Sat, Mar 24, 2007 at 10:31:16PM +0100, Volker Lendecke wrote: > On Wed, Mar 21, 2007 at 08:08:22PM +0100, Volker Lendecke wrote: > > Give me two or three days and I'll fix it. I'm just really > > busy right now. > > Attached find the patch I checked in as revision 21962. This time with patch... Volker pgpXUDaeGuKuj.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] error while migrating users to ldap with pdbedit
On Wed, Mar 21, 2007 at 08:08:22PM +0100, Volker Lendecke wrote: > Give me two or three days and I'll fix it. I'm just really > busy right now. Attached find the patch I checked in as revision 21962. Volker pgpuNl9zWUok6.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] error while migrating users to ldap with pdbedit
Zitat von Volker Lendecke <[EMAIL PROTECTED]>: On Wed, Mar 21, 2007 at 06:09:06PM +0100, Markus Krause wrote: if you mean by "default smb.conf" the file which samba is currently using thats a problem as our samba server(s) are in heavy usage (almost all time) and a planned downtime has to be announced some days in advance. is there another way instead of installing another samba server then? Give me two or three days and I'll fix it. I'm just really busy right now. Volker Hi Volker, thanks for offer and help! Next week will be great and soon enough for us! regards markus -- 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
Re: [Samba] error while migrating users to ldap with pdbedit
On Wed, Mar 21, 2007 at 06:09:06PM +0100, Markus Krause wrote: > if you mean by "default smb.conf" the file which samba is currently > using thats a problem as our samba server(s) are in heavy usage > (almost all time) and a planned downtime has to be announced some days > in advance. > is there another way instead of installing another samba server then? Give me two or three days and I'll fix it. I'm just really busy right now. Volker pgpQQH9My6xlN.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] error while migrating users to ldap with pdbedit
Zitat von Volker Lendecke <[EMAIL PROTECTED]>: On Wed, Mar 21, 2007 at 12:56:34PM +0100, Markus Krause wrote: but executing pdbedit results in an error because pdbedit tries to connect the ldap server "localhost": I would not be surprised if pdbedit was broken with regard to the -s parameter. Can you edit the default smb.conf file with your ldap values? Volker if you mean by "default smb.conf" the file which samba is currently using thats a problem as our samba server(s) are in heavy usage (almost all time) and a planned downtime has to be announced some days in advance. is there another way instead of installing another samba server then? regards markus -- 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
Re: [Samba] error while migrating users to ldap with pdbedit
On Wed, Mar 21, 2007 at 12:56:34PM +0100, Markus Krause wrote: > but executing pdbedit results in an error because pdbedit tries to > connect the ldap server "localhost": I would not be surprised if pdbedit was broken with regard to the -s parameter. Can you edit the default smb.conf file with your ldap values? Volker pgpZNrmC7oc9B.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] error while migrating users to ldap with pdbedit
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/21/2007 08:56 AM, Markus Krause wrote: > 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: Are you using the same machine? Or you are doing the tests on a new machine? > --- [smb.conf] [...] > ---[end of smb.conf] Did you register the LDAP password using 'smbpasswd -w'? > but executing pdbedit results in an error because pdbedit tries to > connect the ldap server "localhost": > > --- [...] > -- > > 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). I would say that it could be the password problem, but could also be some configuration related to the LDAP parameters and ACLs. > any hints are appreciated! > thanks in advance! > markus Hope this helps, kind regards. - -- Felipe Augusto van de Wiel <[EMAIL PROTECTED]> Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGAUUmCj65ZxU4gPQRApX5AKCZuS5rLgzjooaYCTyLPzq+oFerMQCdFqIm 8k/XH5k4rFyCI50lqJLrcP0= =KwFc -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] error while migrating users to ldap with pdbedit
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