ProFTPD Developer's Guide: Obtaining Session Credentials

ProFTPD Version 1.2


Table of Contents

Session Credentials
The credentials of a session, or its identity, are available via members of the global session variable. The credentials include user information, group membership information, and Class information (if used).

The session user members
These members are all set after the PASS command has been processed:

In addition to these session members, there is an additional place in which user identity information (specifically, the user name originally sent by the client in the USER command) is stored: in a config_rec, and is retrievable like this:
  char *user = (char *) get_param_ptr(main_server->conf, C_USER, FALSE);
This config_rec is set in cmd_pass(), and is never removed.

The session group members
These members are all set after the PASS command has been processed:

The session Class member

Table of Contents



Author: $Author: castaglia $
Last Updated: $Date: 2003/01/02 17:39:30 $


© Copyright 2000-2003 TJ Saunders
All Rights Reserved