• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Beta has trouble with LDAP users
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Beta has trouble with LDAP users


  • Subject: Re: Beta has trouble with LDAP users
  • From: Steve Lidie <email@hidden>
  • Date: Mon, 3 Feb 2003 12:13:00 -0500

On Monday, Feb 3, 2003, at 11:44 US/Eastern, Aaron Suggs wrote:

I work in a computer lab at a university. We use LDAP to verify that users have access privileges, then automatically create a local home directory for them as part of a login script. Each user's local path is given by the LDAP server, so the user's directory is not in the usual /Users/ directory.

This seems to break the X11 beta. I can install and run X11 as an admin, and everything works. It also works as any local user. But when I log in as an LDAP user, X11 fails to launch. On one trial as an LDAP user, X11 launched and opened xterm, but that immediately threw an error that xinit cannot find the uid. But on most trials X11 crashes before it launched xterm.

I attempted to fix this by copying the entire admin directory to the LDAP user's directory, but X11 still didn't work for the LDAP user.

Any tips on how to get X11 to work with LDAP users? Otherwise I'll submit this as a bug.



It's probably an already reported bug: permissions on /tmp/.X0-lock prevent subsequent invocations of X11 from other users. If this is indeed your problem, I solved it using a login hook that simply executes this script:

#!/bin/bash
/bin/rm -fr /tmp/.X0* /tmp/.X11*

To activate the login hook, you need to modify /etc/ttys and add the -LoginHook option to the 'console" line. Notice that the -LoginHook option requires as its value the pathname to the above script.

console "/System/Library/CoreServices/loginwindow.app/Contents/MacOS/ loginwindow -LoginHook /Users/A
dmin/bin/clean-X11" vt100 on secure window=/System/Library/CoreServices/WindowServer onoption="/usr/
libexec/getty std.9600"


Important notes:


1) make a copy of the original /etc/ttys before editing
2) in Sharing enable ssh so you can login and restore the original /etc/ttys if you mess up
3) I used emacs, suggest you do not use any editor other than a *unix one* due to long lines
4) IIRC, a reboot is required before the new /etc/ttys is parsed and the login hook will function


If there's a better way, please let me know ...

Steve
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.

References: 
 >Beta has trouble with LDAP users (From: Aaron Suggs <email@hidden>)

  • Prev by Date: Re: Problems with current Apple X11 package
  • Next by Date: Re: tried installing kde with finkcommander and this is what it read:
  • Previous by thread: Beta has trouble with LDAP users
  • Next by thread: X11 Error: Couldn't find per display information
  • Index(es):
    • Date
    • Thread