Hello, I'm running samba 2.2 on FreeBSD 4.4. I was wondering if there was a way to sync up the samba and FreeBSD user passwords so that when either via the unix passwd or samba's smbpasswd program a user changes a password it is changed through both systems? If anyone is dong this successfully please let me know. Thanks. Dave. ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/web/.
Hello, Much thanks, i look forward to your results. I myself have the added complication that once i get the unix side of this working i might have to integrate windows 2k clients in to it. Dave. On Mon, 25 Feb 2002 12:30:14 +0000 (GMT) Mac <dmccann@nibsc.ac.uk> writes:> Hi Dave, > > >To: samba@samba.org > >From: awesome-dave1@juno.com > >Subject: [Samba] password synchronization. > >Date: Sun, 24 Feb 2002 11:32:24 -0500 > > > >Hello, > > I'm running samba 2.2 on FreeBSD 4.4. I was wondering if > there was a > >way to sync up the samba and FreeBSD user passwords so that when > either > >via the unix passwd or samba's smbpasswd program a user changes a > >password it is changed through both systems? If anyone is dong this > >successfully please let me know. > > > I'm currently working on this for my own site. > > I _have_ to get it working very soon and when I do I'm more than > happy > to tell people how I've done it. > > I have the added complication of using NIS. > > And the extra added complication that NIS doesn't use '/etc/passwd', > but instead '/var/ypdata/etc/passwd'. > > And I have multiple Samba servers.... > > And it's all on IRIX. > > > But it _will_ all work. (It has to) > > The basic plan is to get the 'unix password sync' working on the NIS > master (which will involve the 'unix password sync' program directly > editing /var/ypdata/etc/passwd) and then forcing all password > changing > to be done via Samba. > > So anyone typing 'passwd' at a UNIX prompt will in fact be changing > their Samba password, and then Samba will 'sync' the UNIX (NIS) > password for them. > > I'm actually working on full automation of account creation/deletion > as > well so additions/removals in /var/ypdata/etc/passwd will be > automatically reflected in smbpasswd. > > > Watch this space. > > > P.S. If anyone out there has already done this, or even part of > this, > please, please let me know. I'd hate to re-invent a wheel that > someone > is already rolling with. > > Mac > Assistant Systems Adminstrator @nibsc.ac.uk > dmccann@nibsc.ac.uk > Work: +44 1707 654753 x285 Everything else: +44 7956 237670 > (anytime)________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/web/.
>To: samba@samba.org >From: awesome-dave1@juno.com >Subject: [Samba] password synchronization. >Date: Sun, 24 Feb 2002 11:32:24 -0500 > >Hello, > I'm running samba 2.2 on FreeBSD 4.4. I was wondering if there was a >way to sync up the samba and FreeBSD user passwords so that when either >via the unix passwd or samba's smbpasswd program a user changes a >password it is changed through both systems? If anyone is dong this >successfully please let me know.I'm currently working on this for my own site. I _have_ to get it working very soon and when I do I'm more than happy to tell people how I've done it. I have the added complication of using NIS. And the extra added complication that NIS doesn't use '/etc/passwd', but instead '/var/ypdata/etc/passwd'. And I have multiple Samba servers.... And it's all on IRIX. But it _will_ all work. (It has to) The basic plan is to get the 'unix password sync' working on the NIS master (which will involve the 'unix password sync' program directly editing /var/ypdata/etc/passwd) and then forcing all password changing to be done via Samba. So anyone typing 'passwd' at a UNIX prompt will in fact be changing their Samba password, and then Samba will 'sync' the UNIX (NIS) password for them. I'm actually working on full automation of account creation/deletion as well so additions/removals in /var/ypdata/etc/passwd will be automatically reflected in smbpasswd. Watch this space. P.S. If anyone out there has already done this, or even part of this, please, please let me know. I'd hate to re-invent a wheel that someone is already rolling with. Mac Assistant Systems Adminstrator @nibsc.ac.uk dmccann@nibsc.ac.uk Work: +44 1707 654753 x285 Everything else: +44 7956 237670 (anytime)
I have done a version of this for Solaris - using expect script and so forth. This is Unix -> SMB synchronisation. See: http://www.btinternet.com/~p.polkinghorne/samba/u2s/ Note if you have PAM you can use the pam_smbpass (in the distribution) to do the same sort of thing rather more neatly. -- Peter Polkinghorne, IT Manager Kingsford Stacey Blackwell ppolkinghorne@kingsfords.co.uk 14 Old Square, Lincoln's Inn (44) 020 7447 1200 London WC2A 3UB A list of names of the partners is open to inspection at the above address. Regulated by the Law Society in the conduct of investment business