Re: [Ltsp-discuss] cannot build fat client image on Ubuntu16.04

2016-12-23 Thread Alkis Georgopoulos
The LTSP server uses ldap,
the LTSP client uses ssh to authenticate to the LTSP server,
so the LTSP client uses ldap indirectly, not directly.

So, remove all the ldap bits from the chroot and try again.

Cheers,
Alkis Georgopoulos
LTSP developer


On 23/12/2016 09:25 πμ, NeK kentarou wrote:
> Dear all,
>
> I constructed fat client on Ubuntu Desktop 16.04 which is on XenServer 7.0.
> Now a local user can log in, but a user registerd on ldap can not log in
> the fat client.
> I can find the message "Permission denied(Publickey, password)".
> After log in by local user, I can switch ldap user by su - [ldap user name].
> And id [ldap user name], getent passwd and get ent shadow seems to work
> properly.
>
> What I did:
> -Install ltsp-server
> I have already DHCP server so I did not chose ltsp-server-standalone.
> -build-fat-client
> -Install ldap client and nscd to fat client
> -basic setting and rewrite nsswitch.conf and pam.d/common-passwd
>
> I really need your help.
>
> Kentarou Kurashige


--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] Getent Problem on Ubuntu 16.04

2016-12-23 Thread John Halfpenny
Hi Alkis

Brilliant, that worked!

Thanks for your swift reply, I'll submit a bug report now.

Best Wishes
John

On 22 December 2016 at 22:18, Alkis Georgopoulos  wrote:

> Hi John,
>
> open ($CHROOT)/usr/share/ldm/rc.d/X01-localapps
> find 2 "read" commands in lines 36 and 46
> and replace them with "read -r" so that it doesn't interpret the
> backslashes.
>
> I.e.:
> IFS=':' read -r LDM_USERNAME dummy pw_uid pw_gid pw_gecos LDM_HOME
> pw_shell < and:
> while IFS=':' read -r gr_name dummy gr_gid dummy; do
>
> If that works, file a bug report in https://bugs.launchpad.net/ltsp/ so
> that I can commit the fix.
>
> Cheers,
> Alkis Georgopoulos
> LTSP developer
>
>
> On 22/12/2016 05:27 μμ, John Halfpenny wrote:
> > Hi Everyone
> >
> > We've been running LTSP for a while now on Ubuntu 14.04, and I'm in the
> > process of upgrading to 16.04.
> >
> > Our server connects to Windows using kerberos, samba and nslcd to map
> > attributes to their unix counterparts. This works well, and allows me to
> > login to a client using Windows credentials and map the drive locally.
> >
> > However, on Ub1404, to map the home directory I run a script which uses
> > getent, and the returned string is, e.g. \\server\share\share\username
> >
> > But on Ub1604, getent does not return this properly, but instead removes
> > the slashes, e.g. \servershareshareusername
> >
> > If I run getent on the LTSP server, it works, but not on the client.
> >
> > I've never seen this before. When I strace getent from the client, it
> > doesn't even seem to query nsswitch, whereas it does from the server.
> >
> > e.g. from client:
> >
> > $ strace -e open getent passwd testac
> > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
> > open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
> > open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
> > testac:x:2660:513:tes...@domain.ac.uk
> > ,,
> ,\servershareshareusername:/opt/ltsphome/testac:/bin/bash
> > +++ exited with 0 +++
> >
> > But from the server it seems more comprehensive:
> >
> > $ strace -e open getent passwd testac
> > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
> > open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
> > open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
> > open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
> > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
> > open("/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 3
> > open("/etc/passwd&
> > quot;, O_RDONLY|O_CLOEXEC) = 3
> > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
> > open("/lib/x86_64-linux-gnu/libnss_ldap.so.2", O_RDONLY|O_CLOEXEC) = 3
> > testac:x:2660:513:tes...@domain.ac.uk
> > ,,
> ,\\server\share\share\username:/opt/ltsphome/testac:/bin/bash
> > +++ exited with 0 +++
> >
> > I know authentication can be one of those tricky subjects, but I don't
> > personally feel that this is the issue here, whereas the weird behaviour
> > of getent is. If anyone has any clues or pointers I'd be very grateful,
> > everything else seems to be working fine.
> >
> > Best Wishes
> > John
> >
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> _
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>   https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] cannot build fat client image on Ubuntu16.04

2016-12-23 Thread Alkis Georgopoulos
On 23/12/2016 12:19 μμ, NeK kentarou wrote:
> Dear Alkis Georgopoulos,
>
> Thanks for your advice!
>
> I reinstalled all and have same trouble yet.
>
> What I did:
> Installed Ubuntu Desktop 16.04 on XenServer7.0
>   -LTSP server
> Installed ldap and set up to LTSP server
> Installed ltsp-server
>   -not ltsp-server-standalone
> Executed ltsp-build-client
>   -use /etc/ltsp/ltsp-build-client.conf to make fat client
>
> Result:
> The client can boot up and greeter (?) is displayed.
> A local user can log in.
> A ldap user cannot log in.


Sounds like either a misconfiguration or a bug, it's supposed to work 
out of the box.
Unfortunately it would take too long to troubleshoot this over a mailing 
list, maybe someone else could help...

Cheers,
Alkis Georgopoulos, LTSP developer
Professional LTSP support: alk...@gmail.com

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] cannot build fat client image on Ubuntu16.04

2016-12-23 Thread Finn Andersen
Are you able to login with ssh to the server using ldap credentials from a
regular Linux host? I suspect missing/incorrect config on the server.

Cheers,
Finn Andersen

23. des. 2016 08.27 skrev "NeK kentarou" :

> Dear all,
>
> I constructed fat client on Ubuntu Desktop 16.04 which is on XenServer 7.0.
> Now a local user can log in, but a user registerd on ldap can not log in
> the fat client.
> I can find the message "Permission denied(Publickey, password)".
> After log in by local user, I can switch ldap user by su - [ldap user
> name].
> And id [ldap user name], getent passwd and get ent shadow seems to work
> properly.
>
> What I did:
> -Install ltsp-server
> I have already DHCP server so I did not chose ltsp-server-standalone.
> -build-fat-client
> -Install ldap client and nscd to fat client
> -basic setting and rewrite nsswitch.conf and pam.d/common-passwd
>
> I really need your help.
>
> Kentarou Kurashige
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> _
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>   https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
>
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] cannot build fat client image on Ubuntu16.04

2016-12-23 Thread NeK kentarou
Thanks for reply!

Yes, I can login with ssh to LTSP server from other machines, from Linux
 and windows.

2016/12/23 22:18 "Finn Andersen" :

Are you able to login with ssh to the server using ldap credentials from a
regular Linux host? I suspect missing/incorrect config on the server.

Cheers,
Finn Andersen

23. des. 2016 08.27 skrev "NeK kentarou" :

> Dear all,
>
> I constructed fat client on Ubuntu Desktop 16.04 which is on XenServer 7.0.
> Now a local user can log in, but a user registerd on ldap can not log in
> the fat client.
> I can find the message "Permission denied(Publickey, password)".
> After log in by local user, I can switch ldap user by su - [ldap user
> name].
> And id [ldap user name], getent passwd and get ent shadow seems to work
> properly.
>
> What I did:
> -Install ltsp-server
> I have already DHCP server so I did not chose ltsp-server-standalone.
> -build-fat-client
> -Install ldap client and nscd to fat client
> -basic setting and rewrite nsswitch.conf and pam.d/common-passwd
>
> I really need your help.
>
> Kentarou Kurashige
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> _
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>   https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
>
>

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] cannot build fat client image on Ubuntu16.04

2016-12-23 Thread NeK kentarou
Dear Alkis Georgopoulos,

Thanks for your advice!

I reinstalled all and have same trouble yet.

What I did:
Installed Ubuntu Desktop 16.04 on XenServer7.0
  -LTSP server
Installed ldap and set up to LTSP server
Installed ltsp-server
  -not ltsp-server-standalone
Executed ltsp-build-client
  -use /etc/ltsp/ltsp-build-client.conf to make fat client

Result:
The client can boot up and greeter (?) is displayed.
A local user can log in.
A ldap user cannot log in.



2016-12-23 17:06 GMT+09:00 Alkis Georgopoulos :

> The LTSP server uses ldap,
> the LTSP client uses ssh to authenticate to the LTSP server,
> so the LTSP client uses ldap indirectly, not directly.
>
> So, remove all the ldap bits from the chroot and try again.
>
> Cheers,
> Alkis Georgopoulos
> LTSP developer
>
>
> On 23/12/2016 09:25 πμ, NeK kentarou wrote:
> > Dear all,
> >
> > I constructed fat client on Ubuntu Desktop 16.04 which is on XenServer
> 7.0.
> > Now a local user can log in, but a user registerd on ldap can not log in
> > the fat client.
> > I can find the message "Permission denied(Publickey, password)".
> > After log in by local user, I can switch ldap user by su - [ldap user
> name].
> > And id [ldap user name], getent passwd and get ent shadow seems to work
> > properly.
> >
> > What I did:
> > -Install ltsp-server
> > I have already DHCP server so I did not chose ltsp-server-standalone.
> > -build-fat-client
> > -Install ldap client and nscd to fat client
> > -basic setting and rewrite nsswitch.conf and pam.d/common-passwd
> >
> > I really need your help.
> >
> > Kentarou Kurashige
>
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> _
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>   https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] cannot build fat client image on Ubuntu16.04

2016-12-23 Thread NeK kentarou
Thanks for reply.

There are people who was able to install and use LTSP on Ubuntu 16.04, so I
think I miss a configuration...

Now I refer the following URL.

https://help.ubuntu.com/community/UbuntuLTSP

This site includes the information for various version. Are there better
site?

And, I am sorry for wrong mail title...


2016/12/23 19:33 "Alkis Georgopoulos" :

> On 23/12/2016 12:19 μμ, NeK kentarou wrote:
> > Dear Alkis Georgopoulos,
> >
> > Thanks for your advice!
> >
> > I reinstalled all and have same trouble yet.
> >
> > What I did:
> > Installed Ubuntu Desktop 16.04 on XenServer7.0
> >   -LTSP server
> > Installed ldap and set up to LTSP server
> > Installed ltsp-server
> >   -not ltsp-server-standalone
> > Executed ltsp-build-client
> >   -use /etc/ltsp/ltsp-build-client.conf to make fat client
> >
> > Result:
> > The client can boot up and greeter (?) is displayed.
> > A local user can log in.
> > A ldap user cannot log in.
>
>
> Sounds like either a misconfiguration or a bug, it's supposed to work
> out of the box.
> Unfortunately it would take too long to troubleshoot this over a mailing
> list, maybe someone else could help...
>
> Cheers,
> Alkis Georgopoulos, LTSP developer
> Professional LTSP support: alk...@gmail.com
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> _
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>   https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net