[Samba] User Migration question
Jochen Witte
devnull at alpha-lab.net
Tue Feb 8 06:18:52 GMT 2005
Am Montag, den 07.02.2005, 22:48 -0700 schrieb Craig White:
> On Tue, 2005-02-08 at 06:18 +0100, Jochen Witte wrote:
> > Hello,
> >
> > I would like to migrate my user-accounts from a Samba 2 to a Samba 3
> > setup.
> >
> > Old Setup:
> >
> > Samba 2 with PAM support. PAM uses LDAP to store PosixAccounts
> >
> > New Setup:
> >
> > Samba 3 with "native" LDAP. PosixAccounts are already migrated to my new
> > LDAP server.
> >
> > I tried pdbedit with my old smbpasswd file:
> >
> > ---snip---
> > # pdbedit -i smbpasswd:./smbpasswd
> > build_sam_account: smbpasswd database is corrupt! username jwitte with
> > uid 1000 is not in unix passwd database!
> > ---snip---
> >
> > But:
> >
> > ---snip---
> > # getent passwd|grep jwitte
> > jwitte:x:1000:1000:Jochen Witte:/home/jwitte:/bin/bash
> > ---snip---
> >
> > Any hints?
> ---
> sounds like your passdb parameter isn't set properly
>
> Craig
>
Hm: quoting didnt help. This is my config:
passdb backend = ldapsam:ldap://127.0.0.1/
ldap admin dn = "cn=root,<suffix>"
ldap suffix = "<suffix>"
ldap group suffix = ou=Groups
ldap user suffix = ou=People
ldap machine suffix = ou=Hosts
ldap idmap suffix = ou=People
ldap ssl = Off
and this is a typical user in LDAP:
dn: uid=jwitte,ou=People,<suffix>
objectClass: corpUser
objectClass: posixAccount
objectClass: top
uid: jwitte
uidNumber: 1000
loginShell: /bin/bash
gidNumber: 1000
gecos: Jochen Witte
homeDirectory: /home/jwitte
description: System Engineer / Engineering
cn: Jochen
sn: Witte
userPassword:: e1NNRDV9QWxrRTZ1sdasaYVVKbFBEeTFTMHRQZdsanjkdsajkd
What can I do next?
--
Jochen Witte <devnull at alpha-lab.net>
More information about the samba
mailing list