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

10.3: Enable identd server for internet relay chat use Internet
For some reason, Apple decided to not include the identd server in Panther. If you're a regular user of internet relay chat (IRC), this is a severe hindrance, and many IRC servers require that your machine ident before you can log on. Here is one way you can get ident working on Panther.

Download the fakeidentd source code. Open a Terminal and cd into the fakeident source code directory. Then type the following:
 % cc identd.c
 % mv a.out fakeidentd
 % sudo chown root:wheel fakeidentd
 % sudo mv fakeidentd /usr/bin/fakeidentd
Next you need to use your favorite command line text editor to edit the file /etc -> xinetd.d -> auth to look like this:
service auth
{
        disable         = no
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/bin/fakeidentd
        groups          = yes
        flags           = REUSE IPv6
}
Save the file and restart xinetd using sudo killall -HUP xinetd. With a bit of luck, you now should have a working identd server which returns the name "nobody." FakeIdentd allows you to define a name to return, but I don't know how to do it from this context.
    •    
  • Currently 2.29 / 5
  You rated: 2 / 5 (7 votes cast)
 
[32,704 views]  

10.3: Enable identd server for internet relay chat use | 30 comments | Create New Account
Click here to return to the '10.3: Enable identd server for internet relay chat use' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Enable identd server for internet relay chat use
Authored by: ChiperSoft on Nov 13, '03 11:41:26AM
A couple addendums to this tip.

I've been informed that it's technically better to install this into /usr/local/bin instead of /usr/bin. You can shorten up the install block to one line like this:

sudo cc identd.c -o /usr/local/bin/fakeidentd


[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: ChiperSoft on Nov 13, '03 11:43:37AM
Oh, and you will of course have to alter the auth file to reflect that different location.
server          = /usr/local/bin/fakeidentd


[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: escKATER on Nov 21, '03 08:24:36PM

cc: command not found :(

what I'm doing wrong, don't know much about terminal



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: PolarBair on Dec 09, '04 10:17:58AM

There could be any one of a number of reasons you could be getting that error like being in the wrong directory but One problem I have seen crop up that is not so obvious is that sometimes an executable files executable property or flag or what ever gets stripped in transit either by some carelessly using the wrong type of compression or sometimes it can even be stripped from an uncompressed file by the means of transfer. I know that iChat for example can strip an executable files flag or whatever. It can however be restored. by first of course making sure you are in the right directory and then typing chmod +x "filename of comand here". That may solve your problem.



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: echelonbe86 on Jul 06, '05 07:52:55AM
You also must have the Developer Tools installed. Which one doesn't really matter in this case, you can download it from ADC if you don't have this CD. You can also try to download my fakeidentd executable. That skips the step of

cc identd.c 
mv a.out fakeidentd
you can find it on my website. Success!

---
--
MacOS X Rulez

[ Reply to This | # ]

10.3: Enable identd server for internet relay chat use
Authored by: Pi_ on Nov 13, '03 12:15:59PM

Uh, fakeidentd doesn't need to be launched from xinetd.

It has to get launched at system startup (maybe in /etc/rc, but I'm not sure)

"/usr/local/bin/fakeident bogus" will set the reply string to 'bogus'.

Pi



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: rminsk on Nov 13, '03 09:54:55PM

The fakeidentd does need to be launched from xinetd. fakeidentd does not include any of the code to create the socket/listen/connect. xinetd does this for it.



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: eldenf on Nov 14, '03 10:17:59AM

You are incorrect. I'm launching this fine from /Library/StartupItems. It does not work from xinetd.

---
-=Elden=-
http://www.moondog.org



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: g3cko on Nov 29, '03 05:05:32PM
I found it wouldn't work from xinetd for me, but i have no idea how to start it from
/Library/StartupItems
.. any hints?

[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: Bac's on Nov 14, '03 10:14:27AM

Well, it is not "doesn't need" but actually "can't" since the version of fakeident.c that has been posted doesn't include socket specific calls so that it can be compatible with xinetd.

This version is just a good old standalone daemon.



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: kerbaugh on Nov 18, '03 05:35:50AM

I don't know about "must" but fakeident does indeed run perfectly from xinetd and if you want to pass an argument fakeident, so as to specify the username returned, you have but to add the line,

server_args = Bogus

to the suggested /etc/xinetd.d/auth file. In this case however, group information is not returned. I'm sure there's a way to do that but I haven't time to figure that out.



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: DC Watts on Nov 20, '03 07:48:29AM
Does not work for me when relying on xinetd; but does when used standalone. Yet it does apparently work for some others in this way; and on principle I would rather use xinetd. Why does this work for some and not others? What is the missing factor?

[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: rminsk on Nov 13, '03 09:57:49PM

For people without a c compiler I think the following perl script will work:

#!/usr/bin/perl
$in=<STDIN>;
chomp($in);
print "$in : USERID : UNIX : SPAZ$$";



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: nilsel on Dec 11, '03 11:18:22AM
That perl script worked great for me (10.3.1, without devTools), make sure you give the script executable permission (chmod a+x) first.
Then add this snipplet in /etc/xinetd.conf:
service perl_identd
{
type = UNLISTED
socket_type = stream
protocol = tcp
wait = no
server = /PATH/TO/SCRIPT
port = 113
user = YOUR_USERNAME
}


Do a sudo killall -HUP xinetd to restart xinetd.
any corrections are welcome :)

[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: joesample on Feb 27, '04 03:09:37PM

Thanks for the script and advice, but I'm still having a problem.

I did the following:
1- created and chmod'ed the perl scrip
2- added the lines to xinetd.conf
3- restarted the xinetd daemon

Now my IRC client no longer gives the error No Identd response.
But... I still cannot connect to my desired IRC server because it appears the Identd response from my machine gives 127.0.0.1 and this is not allowed by the IRC server. I know this is my localhost IP address. How might I fix this so I am returning either my internal IP (192.168.0.100) or my firewall gateway IP (dynamic Ip)?

btw- I have a dynamic IP forwarding service so I can use a URL to redirect to my computer (myname.hopto.com) and get around the dyanmic IP problem but not sure if this helps with Identd

Thanks!!!



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: rockkat on Dec 09, '03 12:03:00AM
when I attempt to follow the instruction listed here I get the following msg
rockkat:~/Desktop/fakeident-1.7 rockkat$ % cc identd.c
-bash: fg: %: no such job
rockkat:~/Desktop/fakeident-1.7 rockkat$ cc identd.c
-bash: cc: command not found
So pardon me for being fairly new to this but what am I doing wrong?

[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: UnixNerd on Dec 18, '03 12:14:28PM

Don't type the percent sign.



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: virushark on Dec 09, '03 05:09:59PM

I did all it said...but i have no clue how to run it.

When i type killall -HUP inetd i get an error saying the process doesn't exist...

Ident is still not working for me. Any hints would be appreciated



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: UnixNerd on Dec 18, '03 12:16:25PM

That's because the daemon's name is xinetd.



[ Reply to This | # ]
10.3: identd and airport
Authored by: alcina on Dec 13, '03 05:34:24AM

Also having proglems getting this to run (clean 10.3 install) - or even to check to see what is running! I'm trying to connect over airport so I've also been looking at the nullidentd hint to get identd over airport.

But the IRC channel to which I'm connecting still tells me there's no identd running. AFAIK..I should be running both fakeidentd and nullidentd! The nullidentd hint says "make sure you're running identd" which is where this hint comes in.

Can anyone explain a) how I check to see what is actually running; b) which of the identds should be running or how to integrate both if that is necessary. And after that if you could cure cancer that would be fabulous! :)



[ Reply to This | # ]
10.3: identd and airport
Authored by: virushark on Dec 15, '03 01:21:27AM

It seems that xinetd is running for me now...but it isn't working.

If you want to check if it's running go to terminal and type "top", it should be listed under xinetd



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: virushark on Dec 15, '03 01:06:56PM

Ok, i figured out what's wrong with the identd

First, you gotta enable port 113 on your mac (in system preferences->sharing->firewall->add->other).

If you have a NAT firewall, you should add port 113 on it too.

it works for me now



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: DC Watts on Mar 23, '04 01:28:37PM

... see also this link:
http://home.cogeco.ca/~seann/ident2/
which offers a similar solution, perhaps more accessible to some.



[ Reply to This | # ]
10.3: Enable identd server for IRC use (works with Airport)
Authored by: rajas on Apr 28, '04 12:32:20PM

Hey!

My solution:
1) Open the existing firewall (local or Airport) on port 113
2) Install X-Chat Aqua (http://xchataqua.sourceforge.net)
3) Enable the built-in identd (Preferences -> Network -> Network setup)

Happy chatting,
rajas.



[ Reply to This | # ]
10.3: Enable identd server for IRC use (works with Airport)
Authored by: baskew91 on Oct 29, '05 08:07:48AM

Thats the way to do it! 1st of all xchat aqua rules, so why not do it the easy way, right?

Regards



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: cilly on Jul 27, '04 02:33:49PM

It is better to compile the latest fakeidentd yourself.

To do this get the source at http://iki.fi/too/sw/releases/identd.c

Type in terminal

$ mkdir ~/Desktop/fakeidentd
$ cd ~/Desktop/fakeidentd
$ wget http://iki.fi/too/sw/releases/identd.c
(I am using wget since curl does not follow httpd redirects by default, the actual link to the file at the moment is: http://www.guru-group.fi/~too/sw/releases/identd.c)
$ sh identd.c
(This will create the file identd - the identd daemon)
$ sudo cp identd /usr/local/bin/fakeidentd
(I am using /usr/local/bin as path since it is more common. Make sure you set the equivalent path in: /etc/xinetd.d/auth)

Proceed with the above article and leave IPv6 enabled, otherwise fakeidentd will not start at all!

---
cilly @ http://www.cilly.dyndns.org/

[ Reply to This | # ]

10.3: Enable identd server for internet relay chat use
Authored by: cilly on Jul 27, '04 02:56:31PM

I rewrote the guide and set up the following link:

Enable identd server for internet relay chat use

---
cilly @ http://www.cilly.dyndns.org/

[ Reply to This | # ]

Bad URL for code and auth server
Authored by: boboroshi on Jan 30, '05 08:25:31PM

The URLs in the article are bad (404s) and the user appears to have removed it from his sources directory.

Ircle's link to Authorization Server 1.0r2 is also a 404 on .mac servers.

Does anyone either have the latter binary or a proper link to the initial code?



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: macosxSUCKS on Mar 26, '05 12:50:35PM

OK What the heck is wrong with apple? This is total BS. What kind of company takes away important features in an "upgrade"? Now instead of connecting to IRC like I normally would I have to spend hours trying to figure this crap out thanks to some pinheads at apple making rash decisions. I don't know what they expected their users to do but I gotta say they are reminding me more and more of the rotten service and performance you'd expect from a bill gates product. Aside from the graphics interface of OS X, OS 9 was a much better, more user-friendly operating system.



[ Reply to This | # ]
10.3: Enable identd server for internet relay chat use
Authored by: echelonbe86 on May 16, '05 07:15:50AM

Hey macosxSUCKS, ever tried google.com to search why? identd is a totally useless and insecure protocol! You are blaming the wrong people. You should blame the IRC servers that believe in suck a pointless protocol, like irc.efnet.net.
I assume you are not very familiar with commands in Terminal, so try X-Chat Aqua or something with identd built-in. If it still doesn't work, you probably have blocked internet traffic to port 113, you can easily enable this port in your System Preferences. If it still doesn't work, configure your router/gateway. How to do this depends on the model you have, but most routers have a nice user friendly configuration website. You will hate me for saying this, but you should check your manual ;-)

---
--
MacOS X Rulez



[ Reply to This | # ]