mainDcHub: Hub software for Direct Connect - Support: sr #102316, New functions

 
 

sr #102316: New functions

Submitter:  None
Submitted:  Wed 30 Jul 2003 09:20:40 PM UTC
   
 
Category:  None Priority:  4
Severity:  2 - Minor Status:  None
Privacy:  Public Assigned to:  ericprev
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 03 Nov 2003 08:17:00 PM UTC, comment #3: 


To be added i think.
Codewise it's not the prettiest code or the most practical
code to have to call hub commands etc. Like "-add" to add a
user and such. Would be much nicer to have real script
functions for this. Would be nice to have the functions
behind the command if you know what i mean..
Thanks !!

Anonymous
Wed 06 Aug 2003 05:01:39 PM UTC, comment #2: 


Yes, they are implemented, but it's quite hard to verify
that the user was added correctly, and it's quite hard to
get the password without reading the userfile.

Maybe a way to do it (without having to duplicate the code)
would be something like:

a function called adduser() and then the -adduser would call
that function to add a user, and a dchub::adduser() that
would call that same function.

This is not probebly the most needed function at the moment
=), but still. Would be nice to have in the scripts to make
it a little more easy to work with.


Anonymous
Wed 06 Aug 2003 09:32:22 AM UTC, comment #1: 


All these functions and in fact all functions listed in
-help can be used by the dchub::hubcmd function. This
removes the need of the
banip/ubanip/adduser/deluser/renameuser/usermod and
userpasswd. Those listed functions will not be added because
it will only duplicate part of dchub code and provides no
speed up in processing.

About the remaining functions, it's just a question of time...

Eric PREVOTEAU <ericprev>
Group Member
Wed 30 Jul 2003 09:20:40 PM UTC, original submission:  



Ban a specific ip of a user.
  dchub::banip(ip, lenght in seconds);
  dchub::ubanip(ip);

Get the ip of a specific user.
  ip = dchub::getip(username);
Get all users that comes from a specific ip.
  @username = dchub::revip(ip);

Usermanagement.
  dchub::adduser(username, password, type);
  dchub::deluser(username);
  (username, password, type) = dchub::userinfo
(username);
  date = dchub::seen(username);
  dchub::usermod(username, type);
  dchub::userpasswd(username, password);
  dchub::renameuser(username, newusername);


Also, some new variables for the login-event could be,
usertype, time since last connected.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2003-08-06 ericprev Priority5 - Normal None
    Assigned toNone None

Back to the top

Powered by Savane 3.13-cf05.
Corresponding source code