egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[SOLVED] bot to generate own ident (with oidentd)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
panasonic
Voice


Joined: 15 Sep 2007
Posts: 25

PostPosted: Tue Nov 20, 2007 2:31 pm    Post subject: [SOLVED] bot to generate own ident (with oidentd) Reply with quote

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
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Thu Nov 22, 2007 12:05 pm    Post subject: Reply with quote

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. Confused
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Nov 22, 2007 1:02 pm    Post subject: Reply with quote

@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
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Thu Nov 22, 2007 10:06 pm    Post subject: Reply with quote

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
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Nov 23, 2007 2:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Redento
Voice


Joined: 13 Jun 2007
Posts: 3

PostPosted: Tue Dec 18, 2007 3:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Dec 18, 2007 5:07 pm    Post subject: Reply with quote

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:
Code:
man oidentd

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber