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

ldap_profile.cc

Go to the documentation of this file.
00001 /*************************************************************************/
00002 /*  LDAPCONF - Linuxconf module for LDAP operation.
00003     
00004     Copyright (C) 1999,2000,2001 Stein Vråle <stein@terminator.net>
00005     
00006     This program is distributed in the hope that it will be useful,
00007     but WITHOUT ANY WARRANTY; without even the implied warranty of
00008     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
00009     GNU General Public License for more details.
00010     
00011 **************************************************************************/
00012 /*  LDAPPROFILE
00013     
00014     This object holds properties used for accessing a LDAP directory.
00015     If a property is not set LDAP will usually use the default from the 
00016     client configfile.
00017 
00018 **************************************************************************/
00019 #include "ldapconf_defs.h"
00020 
00021 PUBLIC LDAPPROFILE::LDAPPROFILE ()
00022 {
00023     dn = "";
00024     pw = "";
00025     base = "";
00026     host = "";
00027     port="";
00028 }
00029 
00030 /*
00031     LDAPPROFILE default dialog
00032 
00033 */
00034 PUBLIC void LDAPPROFILE::default_dialog()
00035 {
00036     DIALOG *dia = NULL;
00037     dia = new DIALOG;
00038     dia->newf_str (MSG_U(F_API_HOST,"Host"),host);
00039     dia->newf_str (MSG_U(F_API_PORT,"Port"),port);
00040     dia->newf_str (MSG_U(F_API_BASE,"Base"),base);
00041     dia->newf_str (MSG_U(F_API_DN,"DN"),dn);
00042     dia->newf_str (MSG_U(F_API_PW,"Password"),pw);
00043     FIELD_COMBO *scopelist = dia->newf_combo(MSG_U(F_API_SCOPE,"Scope"),scope);
00044     scopelist->addopt ("one");
00045     scopelist->addopt ("base");
00046     scopelist->addopt ("sub");
00047 //  return *dia;
00048 }
00049 
00050 
00051 
00052 
00053 
00054 
00055 
00056 
00057 
00058 
00059 
00060 
00061 
00062 
00063 
00064 

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