Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: A simplistic identd daemon for Tiger' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: A simplistic identd daemon for Tiger
Authored by: mathieu on May 09, '05 05:45:07PM

Here is the missing text to copy:
[code]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.globules.identd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/identd.py</string>
<string>-c</string>
<string>/etc/identd.ini</string>
</array>
<key>inetdCompatibility</key>
<dict>
<key>Wait</key>
<false/>
</dict>
<key>Sockets</key>
<dict>
<key>Listeners</key>
<dict>
<key>SockServiceName</key>
<string>auth</string>
<key>SockFamily</key>
<string>IPv4</string>
<key>SockProtocol</key>
<string>TCP</string>
</dict>
</dict>
</dict>
</plist>
[/code]

Your small script still doesn't show how to create a daemon, and does not provide for people who need to have several idents (one per user).

Also, the Python script I show here, is only a tad more complicated that your 3 lines PERL script. What makes the tip a bit sophisticated is the creation of the launchd XML config.



[ Reply to This | # ]
10.4: A simplistic identd daemon for Tiger
Authored by: jzaw on May 09, '05 11:38:51PM
this works .. thanks

but to point out two small errata

# curl -O http://www.globules.net/python.py

should read

# curl -O http://www.globules.net/identd.py

and then you need to

# chmod 774 identd.py

so that its executable

also my install of Tiger didnt have a /urs/local/bin dir so i simply created it as root with mkdir and then installed the python script

hope this helps

[ Reply to This | # ]