[Linuxtrent] Re: autenicazione client con xdmcp

  • From: "Giuliano Natali (el Diaolin)" <diaolin@xxxxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Mon, 13 Sep 2004 21:23:18 +0200 (CEST)

Mauro Colorio ha scritto:
> Sto cercando informazioni su come permettere l'autologin su xdm (o gdm)
> in base al nome (o IP o MAC, qualsiasi cosa:) della macchina client,
> in pratica ho un server che esporta l'xdmcp, vorrei che i client quando
> si collegano abbiano un login
> automatico con un determinato utente (devo avere un utente diverso per
> ogni client), c'e' qualche speranza?
> ho guardato la documentazione ma non ne ho ricavato nulla di buono, la
> configurazione è un server
> con gdm e dei client con thinstation, riesco a vedere la schermata di
> gdm dai client ma mi tocca autenticarmi a mano
> oppute abilitare il login automatico ma questo significa avere su ogni
> client lo stesso utente.
>
> qualche indicazione?

En sedativo?
:-)
Scherzo!
Detto qua...:

Setting up KDM to allow a workstation to auto-login is simply a matter of
adding a few lines to the kdmrc file.

Here is an example of setting up 3 terminals to auto-login with 3 separate
user names:

#
# These entries will allow auto-login.
#
# Each workstation can have its own unique user id
#

[X-ws004:0-Core]
AutoLoginEnable=true
AutoLoginUser=jam

[X-ws005:0-Core]
AutoLoginEnable=true
AutoLoginUser=fred

[X-ws006:0-Core]
AutoLoginEnable=true
AutoLoginUser=betty

The above example is fairly crude. You can also modify other behaviours
based on the hostname.

http://www.ltsp.org/contrib/autologin_kdm.html

Oppure per gdm
> Erik Myllymaki wrote:
> > the posts on the list re: GDM autologin seem to be for a situation where
you
> > want ALL terminals to autologin. What if you want only some workstations
to
> > autologin and others to prompt with a login box?
> >
>
> In your gdm.conf file, edit these resources as follows:
>
> AutomaticLoginEnable=true
> AutomaticLogin=/usr/bin/gdm-auto-login %h|
>
> Create the file /usr/bin/gdm-auto-login and have the contents be something
> like this:
>
> #!/bin/sh
>
> case "$1" in
>     xenoga|mgoose)
>        NAME=timeclk
>        ;;
> esac
>
> if [ -n "$NAME" ] ; then
>     echo "Automatically logging in <$NAME> on $1" | logger -t
gdm-auto-login
>     echo $NAME
>     exit 0
> fi
>
> exit 1

thanks for this, but the AutoLogin part seems to fail while the TimedLogin
works:

#cat /etc/X11/gdm/gdm.conf

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=/usr/local/sbin/gdm-auto-login %h|
TimedLoginEnable=true
TimedLogin=/usr/local/sbin/gdm-auto-login %h|
TimedLoginDelay=30
.
.
.

here's the logs; it looks like it tries to login when first booted up but
fails (though logs to syslog) then when the TimedLogin kicks in 30 seconds
later it works:

# tail /var/log/messages

Nov 21 13:39:41 LTSPMASTER gdm-auto-login: Automatically logging in <ltsp1>
on ltsp1
Nov 21 13:39:41 LTSPMASTER gdm-auto-login: Automatically logging in <ltsp1>
on ltsp1
Nov 21 13:40:14 LTSPMASTER gdm-autologin(pam_unix)[921]: session opened for
user ltsp150_1 by (uid=0)

thanks for any advice...

Senza offesa per Janez, ma andar giu' di sudo a raffica non mi sembra
buona cosa.
Diaolin

>
> ciao
> Mauro
> --
> Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
> "subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx
>
>
>


-- 
Ghe gent che come 'l bis la sponge e po sparis
e quei che come 'l tas che a volte no capis
che col nervos ados se fà el zoch che piase al bis
http://www.linuxtrent.it/Members/diaolin/index_html/view

-- 
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: