[OpenAFS] dynamic hostnames...

Daniel Swärd excds@kth.se
28 Aug 2002 12:17:18 +0200


I've set up a Debian workstation image and I want the workstations to
get names from dns. I'm using this for setting the ip:

------
#!/bin/bash

ipadress=$(/sbin/ifconfig eth0 | /bin/grep inet | /usr/awk '{print $2}'
| /usr/bin/cut -d : -2)

wsname=$(dig -x $ipadress | /bin/grep PTR | /usr/bin/awk '{print $5}' |
/usr/bin/cut -d . -f 1)

/bin/hostname $wsname
------

The hostname is correct but I can't login with the pam-modules for
kerberos and openafs anymore. I have no problems with local login to the
workstation and getting tickets/tokens for any principal but the
pam-login fails...

Any ideas of what may be wrong?

	/Daniel