I want to integrate SAMBA with PAM and the local user system. Samba with user security but i dont want to add users with smbpasswd and set passwords thru smbpasswd.

If i change a users password with passwd, it shall automaticly change the samba password also. I know that shall be possible but dont find any good howtos. Im using Samba 3, and this is my smb.conf

# Global parameters
        unix password sync = yes
        passwd program = /usr/bin/passwd %u
        netbios name = TESTSERVER
        workgroup = STANDALONE
        server string = Linux Samba server
        server string = TESTSERVER
        security = user
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 0
        local master = No
        read only = No
        case sensitive = Yes
        dos filetime resolution = Yes
        log level = 2
        encrypt passwords = yes
        smb passwd file = /etc/samba/smbpasswd

        comment =  Test share for standalone
        path = /var/kalle
        browseable = yes
        writable = yes
        create mask = 0644
        valid users = +admin
Hope someone have done this before