I am in the process of replacing my home-server with a new one. The
server will be a web-, mail- and fileserver. Considering i like a
challenge i am trying get as many apps as possible to authenticate
against the installed ldap server. I've gotten my ldap-server so far
as that i can indeed authenticate against it with an account i created
in the ldap-server which was also available in /etc/passwd. Then i
created a new user in the Directory and tried to login with this
account. It failed. After troubleshooting i found out this is because:
a.) There was no home-directory available and b.) when i create the
home-directrory i am not able to set the right permissions on the
directory.
Now my question is this: I've seen a lot of tutorials on the net
concerning logging in on a linux machine and being authenticated to an
ldap server. However, once logged in what is the purpose when you
can't set the correct permissions on a directory? This because
programs as chgrp and chown don't seem to be ldap-aware and can't use
the ldap data to check whether you are using a correct user- or
groupname as parameter.
Thanks in advance,
Rolf Deenen
Chown/chgrp and similar command actually have nothing to do with ldap,
it simply works via nameservice switch (nss) layer, which uses ldap
(or files, or other sources)
to retrieve required information.
Regards,
Piotr
Thanks for the quick reply. Does your answer mean that, with the
correct adjustments in /etc/libnss-ldap or /etc/nsswitch, i should be
able to set filesystem rights in such a way that they are "consistent"
with the user accounts and groups in my ldap directory?
Rolf
This is all the information i needed (and more!).
Rolf Deenen
On Jan 29, 12:22 pm, "DT" <pwa...@jewish.org.pl> wrote:
> On Jan 29, 11:58 am, "rolfijn" <rolf...@gmail.com> wrote:> Hi Piotr,
>
> > Thanks for the quick reply. Does your answer mean that, with the
> > correct adjustments in /etc/libnss-ldap or /etc/nsswitch, i should be
> > able to set filesystem rights in such a way that they are "consistent"
> > with the user accounts and groups in my ldap directory?
>
> > RolfFile /etc/nsswitch.conf holds information about the sources,