/oper idea

These are old archives. They are kept for historic purposes only.
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

/oper idea

Post by w00t »

Just curious, would it be possible to permit remote opering of all but locops? This would be useful in an environment where you have a large uncontrolled pooling DNS, since you are never sure where you might end up, and... yes... Just an idea.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

Kinda tricky really, since successful global /opers are announced as "MODE opernick +oandfriends" and failed opers... well we know there.

Unfortunately, there really isn't any direct mechanism to send the results of a successful "remote oper", and I don't know how code/syz would like to do this.

On a side note, I think I saw something similar on the bugs forum :P .
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

Well, the way I imagined it working was with a new parameter:

/oper <uid> <pass> [servername]

ie /oper w00t testpass zap.netronet.com

It would then send a request for auth to zap.netronet.com or something, similar to /whois <nick> [nick] I guess. (this is a spur of the moment thought, you can tell can't you :))
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

Why not just use remote includes to load the oper block on all servers?
-- codemastr
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

...

You know, I didnt think of that!
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

But what about those without remote includes (since it IS so difficult to install for alot of us)
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

Like us :( Just tried, and remote includes refuse to work (!)
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Post by katsklaw »

what would be the difference from this and a global IRCOp?
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

This would enable that global oper to log in on any server in the network without remote includes, or duplicate oper blocks on all the servers.
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Post by katsklaw »

why would you need that? A global oper can already affect other servers remotely.

I guess what I'm asking for is a specific example.
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

An additional parameter to /oper

/oper Nick Passwd [server]

When the server parameter is specified, that server will then return to the server the oper is on a success or fail. The success responce should contain the flags and info for the oper, and the fail should return the appropriate reason.

Example:
Global-oper has an oline on server-A
Global-oper is connected to server-B

Global-oper would login as follows:
/oper Global-oper password server-A.mynet.com

server-A then responds with a success or fail:
success: sends the needed information to server-B
fail: sends the reason why it failed


Hope that helps.
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Post by katsklaw »

No it don't help .. it don't matter what server the global oper is on .. they have equal access network wide.
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Yes, they do have access network wide. This suggestion is so they can log in on any server on the network.
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

The question is, how do you go about indicating success or failure? Sure you can go and send the ERR_NOOPERHOST error across server boundaries, but you can't indicate a success by any standard means (sending a MODE +o) because the only server that can change a MODE for a client is either the server holding that client, or a U:Lined server using SVS[2]MODE.
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Post by katsklaw »

Stealth wrote:Yes, they do have access network wide. This suggestion is so they can log in on any server on the network.
I totally disagree with this feature then .. Servers are to be staffed by their own staff .. not by anyone. If an oper can't do his/her duties from their own server ... then they don't need an O:Line.

coders, if this is implemeted .. please make it so I can switch it off.
Post Reply