[Samba] Export smbpasswd to LDAP
Iarly Selbir
kurumim007 at gmail.com
Thu Nov 20 23:04:25 GMT 2008
To add samba attributes to groups, i do this:
for i in `ldapsearch -x -b ou=groups,dc=iarly,dc=com | grep 'dn: cn'| cut -d
'=' -f2| cut-d',' -f1`; do echo $i; done
:)
Has a problem?
Reggards,
----------------------------------
iarly Selbir ( Ski0s )
On Thu, Nov 20, 2008 at 10:39 PM, Iarly Selbir <kurumim007 at gmail.com> wrote:
> Thanks for you reply, you save me :D...
>
>
> But now, other problem, import the groups attributes from smbpasswd
>
> anybody can help me...
>
> i try
>
> pdbedit --import smbpasswd:/etc/samba/ -g
>
>
> But this don't change nothing..
>
>
> thanks again.
>
>
> Reggards,
>
> ----------------------------------
> iarly Selbir ( Ski0s )
>
>
>
>
> On Thu, Nov 20, 2008 at 9:38 PM, Adam Williams <awilliam at mdah.state.ms.us>wrote:
>
>> you're syntax isn't correct. try pdbedit --import
>> smbpasswd:/etc/samb/smbpasswd
>>
>> you don't need the -e paramater, pdbedit will read your ldap settings from
>> smb.conf.
>>
>>
>> Iarly Selbir wrote:
>>
>>> Anybody know a tool to migrate smbpasswd to Ldap Backend, i trying using
>>> the
>>> pdbedit -i smbpasswd:/passwd -e ldapsam:ldap://127.0.0.1, but this don't
>>> works.
>>>
>>> Thanks in advance.
>>>
>>> Reggards,
>>>
>>> ----------------------------------
>>> iarly Selbir ( Ski0s )
>>>
>>>
>>
>
More information about the samba
mailing list