Re: [Samba] Import posixAccount to LDAP

2004-01-22 Thread Bruno Gimenes Pereti
Hi Jim,

Thank you for the answer.

I spent my afternoon yesterday trying to make it work but I couldn´t find
what I must do. My first problem is that I don´t know what should be the
input to the script. The script expect the input in a format I don´t know:

while (<>) {
  my ($login, $rid, $lmpwd, $ntpwd, $gecos, $homedir, $b) = split(/:/, $_);

I know the input should be the output of pwdump, but I can´t use it. I read
in the net that it´s the same format of smbpasswd but my smbpasswd is not
like this. Should I create a new file mixing smbpasswd and /etc/passwd? What
is the best way?

The other problem is that I pass a lot of information to smbldap-useradd.pl
script when creating a user:

smbldap-useradd.pl -a -d /home/alunos/ -s /bin/false -c "" \
-m -k /home/alunos/template -B 1 -C "toshiba\\" -D "U:" \
-E "alunos.bat" -F "toshiba\\profiles\\template"  -P

How can I pass this information to smbldap-migrate-account.pl?

Thanks again.

Bruno Pereti.



>
> Tried the migration scripts in /usr/share/samba3/scripts ?
>
> smbldap-migrate-accounts.pl
> smbldap-migrate-groups.pl
>
> Bruno Gimenes Pereti wrote:
> | Hi friends,
> |
> | I´m running a Samba 3.0.0 in a production server with Redhat. I´m
> trying to
> | migrate my users and machine accounts to LDAP, I used pdbedit but it
> imports
> | only the sambaSamAccount attributes and I want to import the
posixAccount
> | attributes too.
> | How can I do that?
> |
> | Thank´s
> |
> | Bruno Pereti.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Import posixAccount to LDAP

2004-01-20 Thread Jim C.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tried the migration scripts in /usr/share/samba3/scripts ?

smbldap-migrate-accounts.pl
smbldap-migrate-groups.pl
Bruno Gimenes Pereti wrote:
| Hi friends,
|
| I´m running a Samba 3.0.0 in a production server with Redhat. I´m
trying to
| migrate my users and machine accounts to LDAP, I used pdbedit but it
imports
| only the sambaSamAccount attributes and I want to import the posixAccount
| attributes too.
| How can I do that?
|
| Thank´s
|
| Bruno Pereti.
|
- --

- -
| I can be reached on the following messenger services: |
|---|
| MSN: [EMAIL PROTECTED]  AIM: WyteLi0n  ICQ: 123291844 |
|---|
| Y!: j_c_llings   Jabber: [EMAIL PROTECTED]|
- -
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFADeBX57L0B7uXm9oRAnYNAJ9DnUIfuliuZdm2aIcj6dXADXqnzQCfaFpR
kYGOCtU4DgJb0ycvQ/OOpec=
=Kxqh
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba