Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

profiles.cc File Reference

#include <stdlib.h>
#include <confdb.h>
#include <translat.h>
#include <dialog.h>
#include <userconf.h>
#include "ldapconf_defs.h"
#include "profiles.h"

Go to the source code of this file.

Functions

LINUXCONF_SUBSYS subb (subsys_profiles ,P_MSG_U(M_PROFILESSUB,"Profiles"))
HELP_FILE help_profiles ("ldapconf","profiles")
PRIVILEGE* lookup_priv (const char *id)
int check_perm (const char *id)

Variables

const char subsys_profiles [] = "profiles"


Function Documentation

LINUXCONF_SUBSYS subb ( subsys_profiles,
P_MSG_U(M_PROFILESSUB,"Profiles") ) [static]
 

HELP_FILE help_profiles ( "ldapconf",
"profiles" ) [static]
 

PRIVILEGE * lookup_priv ( const char * id ) [static]
 

Definition at line 424 of file profiles.cc.

Referenced by check_perm().

00425 {  
00426     char priv_id[PATH_MAX];
00427     sprintf (priv_id,"profile_%s",id);
00428     D(debugf(4,"lookup_priv  priv_id = %s \n",priv_id));
00429     return privilege_lookup (priv_id);
00430 }

int check_perm ( const char * id )
 

Definition at line 439 of file profiles.cc.

00440 {   
00441     D(debugf(6,"PROFILES::perm_check id = %s  \n", id));
00442     PRIVILEGE *priv = lookup_priv(id);
00443     int i;
00444     i = perm_checkpriv(priv);
00445     D(debugf(4,"check_perm  ret = %i \n",i));
00446     return perm_access(priv,"Sorry");
00447 }


Variable Documentation

const char subsys_profiles[] = "profiles" [static]
 

Definition at line 58 of file profiles.cc.


Generated at Mon Jan 22 08:35:16 2001 for ldapconf by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000