docker-openldap icon indicating copy to clipboard operation
docker-openldap copied to clipboard

How to import Samba scheme?

Open axoze opened this issue 4 years ago • 6 comments

Hi,

my QNAP NAS box is connected to my OpenLDAP docker container. The OpenLDAP users can login on the web interface.

Now I want that the users can login via Samba. The QNAP documentation says that I have to import the Samba schema to the LDAP server.

How can I do this with the docker image?

Thank you.

axoze

axoze avatar Sep 28 '20 18:09 axoze

Any update on this? I am also interested.

danielporto avatar Oct 08 '20 10:10 danielporto

I've found out that the docker image already contains the Samba scheme. So my users have got their regular OpenLDAP password and a Samba password. Everything works as I wanted it to.

axoze avatar Oct 10 '20 11:10 axoze

What did you do? I have my qnap it authenticating correctly linux users, but I'm unable to browse windows shares (only nfs/afp). Any hint @axoze ??

danielporto avatar Oct 16 '20 13:10 danielporto

@danielporto @axoze sorry for resurrecting this, but did you ever find a solution?

tnunamak avatar Feb 27 '22 05:02 tnunamak

I've found out that the docker image already contains the Samba scheme. So my users have got their regular OpenLDAP password and a Samba password. Everything works as I wanted it to. @axoze how to configure it? do you have examples

zhujintao avatar Nov 02 '22 07:11 zhujintao

The entry for a person is something like that:

dn: uid=TestAccount,ou=people,dc=mydomain,dc=lokal
objectclass: inetOrgPerson
objectclass: sambaSamAccount
objectclass: posixAccount
sn: lastname
cn: firstname lastname
uid: TestAccount
userPassword: {SHA}shapassword
sambaNTPassword: password
uidNumber: 1211
gidNumber: 2001
homeDirectory: /homes/TestAccount
sambaAcctFlags: [UX]
sambaSID: S-1-5-21-47631656-1402335825-551341023-3422

Is that of any help?

axoze avatar Nov 05 '22 15:11 axoze