troubleshooting ltsp and Active Directory

john lists.john at gmail.com
Thu Sep 4 19:04:30 BST 2008


Hi Vu (or Jerry?),

To confirm very briefly that you're actually joined to AD, open up a
terminal and type:

id someADUser

where someADUser is the name of a user in active directory

if you some sort of error back that means LTSP hasn't successfully
done everything it needs to do to join

Here's the best howto I've found on AD and LTSP. You can pick parts
out of it to do your troubleshooting with, especially
the smbpasswd and getent passwd parts.

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

if you get back meaningful info and the getent and smbpasswd commands
referenced in the howto work, then you may have a problem with ssh
keys in LTSP.  In that case Take a look at this entry on the edubuntu
FAQ

https://help.ubuntu.com/community/EdubuntuFAQ#I%20can%20login%20directly%20to%20the%20server,%20but%20I%20cannot%20log%20in%20to%20my%20thin%20clients.

hth,

john



On Wed, Sep 3, 2008 at 6:29 PM, Vu Nguyen <linuxnuke at gmail.com> wrote:
> Hi guys, it's me again.
> Just wonder with LTSP have you used Likewise to integrate with AD?
> I can join the LTSP server to the domain but can not login with AD user.
> Ta.
> Jerry
> Here are some references
>
> http://www.likewisesoftware.com/
>
> http://www.zimbio.com/Ubuntu+Linux/articles/96/Join+Ubuntu+8+04+Windows+Domain
>
>
>
>
>
> On Tue, Sep 2, 2008 at 2:29 PM, Vu Nguyen <linuxnuke at gmail.com> wrote:
>>
>> Thank you for the info, John.
>> It is very helpful for a newbie. It is good when I am not alone with my
>> idea.
>> Thanks and I'll get back with the results.
>> Vu Nguyen
>> Powerthink Mebourne
>>
>>
>> On Tue, Sep 2, 2008 at 3:59 AM, john <lists.john at gmail.com> wrote:
>>>
>>> Hi Vu,
>>>
>>> We use win2k3 for authentication as well via winbind. We used to host
>>> student files on a windows server and I believe we used the pam_mount
>>> module to mount the shares on a per user basis
>>>  http://pam-mount.sourceforge.net/
>>>
>>> Last year we moved the student files over to Linux and we are happy
>>> with the results. Since we're in a mixed environment we can share
>>> files with WindowsXP users via samba, with our LTSP clients via NFS
>>> and even allow remote access via sftp.
>>>
>>> I DO wish that /etc/profile would still work as it used to. I am sure
>>> there are good reasons for moving to an image based approach (if
>>> that's the right way to describe it) but I don't like the fact that it
>>> breaks the way *nix has worked for 20 years or so.
>>>
>>> John
>>>
>>> On Sun, Aug 31, 2008 at 4:25 PM, Vu Nguyen <linuxnuke at gmail.com> wrote:
>>> > Hi John and everyone,
>>> > Thanks for this post, I am also looking for the solution too.
>>> > I am deploying a lab with Edubuntu LTSP in a school, we have W2K3
>>> > domain
>>> > setup already, I have tried likewise on normal ubuntu, it joins the
>>> > domain
>>> > and everything is ok, but it seems that I don't have luck with Edubuntu
>>> > LTSP, I am working on this and next step will be "how to map their home
>>> > drive when they log on to the lab?".
>>> > Thanks for your help.
>>> > Ta.
>>> >
>>> >
>>> > On Mon, Sep 1, 2008 at 7:21 AM, john <lists.john at gmail.com> wrote:
>>> >>
>>> >> Hi all,
>>> >>
>>> >> I am two days away from the start of school and the problem I
>>> >> described before still applies to me. If I can't figure this out I'll
>>> >> have to put off my upgrade to 8.04 (or 8.10 perhaps) until December.
>>> >> I'd really appreciate any help.
>>> >>
>>> >> This issue is I want to run some scripts that up until now have been
>>> >> called by /etc/profile. This has worked for me up through Edubuntu
>>> >> 7.04 The scripts use the system variables $HOME and $USER to map NFS
>>> >> shares to users desktops. I understand from oli and others that the
>>> >> image generated by 8.04 doesn't reference /etc/profile when users log
>>> >> in.
>>> >>
>>> >> When I tried calling these scripts from
>>> >> /etc/X11/Xsession.d per Ollies suggestion the scripts didn't seem to
>>> >> run, and in fact after accepting my credentials X just sent me back to
>>> >> the login screen,  perhaps my syntax was incorrect. But I couldn't
>>> >> find any debug information in the logs to trouble shoot the issue.
>>> >> Where do I find more debug info?
>>> >>
>>> >> francois suggestion about putting the lines in
>>> >> /opt/ltsp/i386/etc/profile and then updating the image didn't work
>>> >> either.
>>> >>
>>> >> Below is the what I placed in my file called
>>> >> /etc/X11/Xsession.d/85-SetupHome:
>>> >>
>>> >>
>>> >> #!/bin/sh
>>> >> #
>>> >> # SetupHome.sh
>>> >> #       Clean up from previous session
>>> >> #
>>> >> # Sweep all files from $HOME and $HOME/Desktop to $HOME/Desktop/ZDrive
>>> >> #  (ignores directories).
>>> >> # Makes Desktop and ZDrive dir entries if needed.
>>> >> #
>>> >>
>>> >> # Name of desktop itself
>>> >> dt=$HOME/Desktop
>>> >> if [ ! -e $dt ]
>>> >> then
>>> >>    mkdir $dt
>>> >> fi
>>> >>
>>> >> # Name of ZDrive on Desktop
>>> >> zd=$dt/ZDrive
>>> >>
>>> >> # Storage server, and pre-built index of students on the server
>>> >> server=/mnt/ALLSTUDENTS
>>> >> index=$server/index.students
>>> >>
>>> >> # Make sure username is all lower case
>>> >> user=`echo $USER | tr A-Z a-z`
>>> >>
>>> >> # Zdrive does not exist, go figure it out
>>> >> if [ ! -e $zd ]
>>> >> then
>>> >>
>>> >>    # Search file server for this user's directory
>>> >>    if grep "/$user"'$' $index > /tmp/us$$
>>> >>    then
>>> >>        store=$server/`cat /tmp/us$$`
>>> >>    else
>>> >>        # N.B., must fix for y3k compatibility
>>> >>        store=$server/2*/$user
>>> >>    fi
>>> >>    rm -f /tmp/us$$
>>> >>
>>> >>    # Teachers, for instance, won't have storage on student fileserver
>>> >>    if [ -e $store ]
>>> >>    then
>>> >>        ln -s $store $zd
>>> >>    else
>>> >>        # No ZDrive available for this user, just quietly leave
>>> >>        exit 0
>>> >>    fi
>>> >> fi
>>> >>
>>> >> # If the user created files in the home directory, move them down
>>> >> # to the Desktop
>>> >> for src in "$HOME" "$dt"
>>> >> do
>>> >>    # Walk entries in this dir
>>> >>    cd $src
>>> >>    for x in *
>>> >>    do
>>> >>        # Only process *files* in this dir
>>> >>        if [ -f "$x" ]
>>> >>        then
>>> >>            # Calculate default destination
>>> >>            dest="$zd/$x"
>>> >>
>>> >>            # Oops, already there, concatenate an index number
>>> >>            if [ -e "$dest" ]
>>> >>            then
>>> >>                # Start with <foo>_0, and count up until an opening is
>>> >> found
>>> >>                count=0
>>> >>                dest2="$zd/$count""_$x"
>>> >>                while [ -e "$dest2" ]
>>> >>                do
>>> >>                    count=`expr $count + 1`
>>> >>                    dest2="$zd/$count""_$x"
>>> >>                done
>>> >>                cp "$x" "$dest2" && rm -f "$x"
>>> >>            else
>>> >>                cp "$x" "$dest" && rm -f "$x"
>>> >>            fi
>>> >>        fi
>>> >>    done
>>> >> done
>>> >>
>>> >>
>>> >> exit 0
>>> >>
>>> >>
>>> >>
>>> >> On Thu, Aug 28, 2008 at 8:27 AM, Oliver Grawert <ogra at ubuntu.com>
>>> >> wrote:
>>> >> > hi,
>>> >> > On Do, 2008-08-28 at 08:03 -0700, john wrote:
>>> >> >> Hi all,
>>> >> >>
>>> >> >> I was wondering where I can put scripts that I want to run when a
>>> >> >> user
>>> >> >> logs on to a thin client. I used to put them in /etc/profile but
>>> >> >> that
>>> >> >> doesn't seem to work under Hardy. It seems like LDM is somehow
>>> >> >> by-passing the stuff I put there. Can someone help me out?
>>> >> > ldm is executing /etc/X11/Xsession by default ... (like gdm or kdm
>>> >> > do)
>>> >> > one option would be to put stuff into /etc/X11/Xsession.d, another
>>> >> > is to
>>> >> > use the xdg autostart mechanism in /etc/xdg/autostart
>>> >> >
>>> >> > ciao
>>> >> >        oli
>>> >> >
>>> >> > --
>>> >> > edubuntu-users mailing list
>>> >> > edubuntu-users at lists.ubuntu.com
>>> >> > Modify settings or unsubscribe at:
>>> >> > https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
>>> >> >
>>> >> >
>>> >>
>>> >> --
>>> >> edubuntu-users mailing list
>>> >> edubuntu-users at lists.ubuntu.com
>>> >> Modify settings or unsubscribe at:
>>> >> https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
>>> >
>>> >
>>
>
>



More information about the edubuntu-users mailing list