Samba + Mysql (backend)

Murilo Cabrini mcabrini at gmail.com
Fri Mar 5 07:19:50 MST 2010


Prezados,

O samba (versao 3.2.0)  ainda tem suporte para autenticacao no SGBD MySQL?

Instalei o "pam_mysql-0.7RC1.tar" e nao resolveu. Ele criou uma LIB em
"/lib/pam_mysql.so".

O erro do LOG é que nao está localizando o pluging do mysql, como resolver
isso????

Tenho o MySQL instalado e funcionando blz.... no mesmo computador.....

Segue o log do erro do log.smb
------------------------------------------------------------------
[2010/03/04 17:28:32,  0] smbd/server.c:main(1208)
  smbd version 3.2.0rc1-22.1-1795-SUSE-SL11.0 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2008
[2010/03/04 17:28:33,  0] passdb/pdb_interface.c:make_pdb_method_name(149)
  No builtin nor plugin backend for mysql found
[2010/03/04 17:28:33,  0] lib/util.c:smb_panic(1666)
  PANIC (pid 27280): pdb_get_methods_reload: failed to get pdb methods for
backend mysql:foo

[2010/03/04 17:28:33,  0] lib/util.c:log_stack_trace(1770)
  BACKTRACE: 7 stack frames:
   #0 /usr/sbin/smbd(log_stack_trace+0x2d) [0xb7c3be84]
   #1 /usr/sbin/smbd(smb_panic+0x80) [0xb7c3bfe1]
   #2 /usr/sbin/smbd [0xb7be6c93]
   #3 /usr/sbin/smbd(initialize_password_db+0x24) [0xb7be95ee]
   #4 /usr/sbin/smbd(main+0x97a) [0xb7e8bd9f]
   #5 /lib/libc.so.6(__libc_start_main+0xe5) [0xb74685f5]
   #6 /usr/sbin/smbd [0xb7a24b71]
[2010/03/04 17:28:33,  0] lib/fault.c:dump_core(201)
  dumping core in /var/log/samba/cores/smbd


Arquivo "smb.conf"
-------------------------------------------------------------
[global]
        workgroup = CABRINI
        server string = samba file services at WORKGROUP-NAME
        encrypt passwords = No
        map to guest = Bad User
        passdb backend = mysql:foo
        printcap name = cups
        add machine script = /usr/sbin/useradd  -c Machine -d
/var/lib/nobody -s /bin/false %m$
        logon path = \\%L\profiles\.msprofile
        logon drive = P:
        logon home = \\%L\%U\.9xprofile
        domain logons = Yes
        os level = 65
        preferred master = Yes
        domain master = Yes
        usershare allow guests = Yes
        foo:table = user
        foo:mysql port = 3306
        foo:mysql database = samba
        foo:mysql user = samba
        foo:mysql password = samba
        foo:mysql host = localhost # can be changed to remote host
        foo:domain column = 'LOCALDOMAIN':
        cups options = raw
        include = /etc/samba/dhcp.conf
[homes]
        read only = No
[www]
        path = /www
        valid users = penguin
        force group = http
        read only = No
[public]
        path = /samba/public
        valid users = penguin
        read only = No

Se alguem puder me ajudar, agradeço.

Obrigado.



Murilo Cabrini Costa Teixeira
Professional Certified in ITIL and COBIT
(62) 9911-4808


More information about the samba-technical mailing list