Manual Pages for UNIX Darwin command on man pop3d_udb
MyWebUniversity

Manual Pages for UNIX Darwin command on man pop3d_udb

pop3d::udb(n) Tcl POP3 Server Package pop3d::udb(n)

NAME

pop3d::udb - Simple user database for pop3d

SYNOPSIS

package require TTccll 88..22 package require ppoopp33dd::::uuddbb ??11..00..11?? ::::ppoopp33dd::::uuddbb::::nneeww ?dbName? ddbbNNaammee option ?arg arg ...? dbName ddeessttrrooyy dbName aadddd user pwd storage dbName rreemmoovvee user dbName rreennaammee user newName dbName llooookkuupp user dbName eexxiissttss user dbName wwhhoo dbName ssaavvee ?file? dbName rreeaadd file

DESCRIPTION

The package ppoopp33dd::::uuddbb provides simple in memory databases which can be used in conjunction with the pop3 server core provided by the package ppoopp33dd. The databases will use the names of users as keys and associates passwords and storage references with them.

Objects created by this package can be directly used in the authentica-

tion callback of pop3 servers following the same interface as servers created by the package ppoopp33dd. ::::ppoopp33dd::::uuddbb::::nneeww ?dbName? This command creates a new database object with an associated global Tcl command whose name is dbName. The command ddbbNNaammee may be used to invoke various operations on the database. It has the following general form: ddbbNNaammee option ?arg arg ...? Option and the args determine the exact behavior of the command. The following commands are possible for database objects: dbName ddeessttrrooyy Destroys the database object. dbName aadddd user pwd storage Add a new user or changes the data of an existing user. Stores password and storage reference for the given user. dbName rreemmoovvee user Removes the specified user from the database. dbName rreennaammee user newName Changes the name of the specified user to newName. dbName llooookkuupp user

Searches the database for the specified user and returns a two-

element list containing the associated password and storage ref-

erence, in this order. Throws an error if the user could not be found. This is the interface as expected by the authentication callback of package ppoopp33dd. dbName eexxiissttss user Returns true if the specified user is known to the database, else false. dbName wwhhoo Returns a list of users known to the database. dbName ssaavvee ?file? Saves the contents of the database into the given file. If the file is not specified the system will use the path last used in a call to dbName rreeaadd. The generated file can be read by the rreeaadd method. dbName rreeaadd file Reads the specified file and adds the contained user definitions

to the database. As the file is actually ssoouurrccee'd a safe inter-

preter is employed to safeguard against malicious code. This interpreter knows the aadddd command for adding users and their associated data to this database. This command has the same argument signature as the method aadddd. The path of the file is remembered internally so that it can be used in the next call of dbName ssaavvee without an argument. KKEEYYWWOORRDDSS internet, network, pop3, protocol COPYRIGHT Copyright (c) 2002 Andreas Kupries pop3d 1.0.1 pop3d::udb(n)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™