| View previous topic :: View next topic |
| Author |
Message |
panasonic Voice
Joined: 15 Sep 2007 Posts: 25
|
Posted: Tue Nov 20, 2007 2:31 pm Post subject: [SOLVED] bot to generate own ident (with oidentd) |
|
|
hi! all,
i have a psybnc and an eggdrop running on one shell account
since oidentd is running and multiple ident is enabled for my shell, psybnc will create an ident file named .oidentd.conf
| Code: | $ cat .oidentd.conf
global { reply "mypsybnc" } |
but later when i run my eggdrop, it will catch the ident from .oidentd.conf generated by psybnc.
i have to edit .oidentd.conf to make the ident i want for my eggdrop bot
how do i make the bot to generate it own ident automatically then?
thanks for helping
Last edited by panasonic on Wed Dec 05, 2007 2:10 pm; edited 1 time in total |
|
| Back to top |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Thu Nov 22, 2007 12:05 pm Post subject: |
|
|
what do you mean, generate it's own ident automatically? I always thought the ident was what was set on the first variable in the conf file, set username.  _________________
Johoho's TCL for beginners
 |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Nov 22, 2007 1:02 pm Post subject: |
|
|
@YooHoo:
Nope, the username variable is only used with the USER command.. Besides, eggdrop does not have a built-in identd-service. If there is no identd-service running, some ircd's use the username supplied with the USER-command (usually prefixing it with ~ or -), while others simply refuse the connection alltogether.
@panasonic:
Something like this might do the trick:
| Code: | bind evnt - "connect-server" preconnect
proc preconnect {evnt} {
set fd [open "~/.oidentd.conf" "WRONLY CREAT TRUNC"]
puts $fd {global { reply "myeggdrop" }}
close $fd
} |
_________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Thu Nov 22, 2007 10:06 pm Post subject: |
|
|
thanks nml375, I have never tried to change my bot's ident before, it has always been the same value as the username from my shells. Intresting _________________
Johoho's TCL for beginners
 |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Nov 23, 2007 2:36 pm Post subject: |
|
|
This would only work with the oidentd service. Most other does not allow you as a user to alter the responsecode, but simply uses the information provided by the system (oidentd does use the same system information to locate which user was responsible for the queried connection, but then checks if that user is allowed, and wants, a different identd-response). _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Redento Voice
Joined: 13 Jun 2007 Posts: 3
|
Posted: Tue Dec 18, 2007 3:11 pm Post subject: |
|
|
| nml375 wrote: | | This would only work with the oidentd service. Most other does not allow you as a user to alter the responsecode, but simply uses the information provided by the system (oidentd does use the same system information to locate which user was responsible for the queried connection, but then checks if that user is allowed, and wants, a different identd-response). |
I regret to bump this thread, but i've been experiencing such a kind of problem in this period.
I've a shell which is running a moltitude of psy and eggdrops. Well, it is a custom ip, on a server which share the main ip.
Point now is that they're saying the ident can be changed on that ip, but so far, as hard as tried, i couldn't do it.
I did try the above written tcl code, i did try to change in every way the .oidentd.conf file, but no way, ident still remains the same.
Instead, the ident used is the shell's username, and well, it is not what i expect/ask/want.
I guess they're not allowing ident-user response, as you just stated in the post?
They did also answer to various mails, but i guess they aren't really in it, since they never get into this kind of problem.
If someone has any ideas, thanks in advance. |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Dec 18, 2007 5:07 pm Post subject: |
|
|
To work oident.conf needs to be edited (as root) and the following (which works for me) needs be added under the default settings:
| Code: | user <username> {
default {
allow spoof
allow spoof_all
allow random
allow hide
}
} |
Replace <username> with the actual user's account name.
More information:
_________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
|