#include "ldapconf_defs.h"Go to the source code of this file.
Functions | |
| void | ldap_mainmenu () |
| void | ldap_mainmenu_client () |
| void | ldap_mainmenu_server () |
| void | ldap_mainmenu_directory () |
| void | ldap_mainmenu_system () |
| void | ldap_mainmenu_profile () |
| void | ldap_server_menu () |
|
|
Definition at line 11 of file menus.cc. Referenced by MODULE_ldapconf::domenu(), and MODULE_ldapconf::execmain(). 00012 {
00013 const char *key_ldapmain_server = MSG_U(M_LDAP_MAINMENU_SERVER,"Server");
00014 const char *key_ldapmain_directory = MSG_U(M_LDAP_MAINMENU_DIRECTORY,"Directory");
00015 const char *key_ldapmain_client = MSG_U(M_LDAP_MAINMENU_CLIENT,"Client");
00016 const char *key_ldapmain_system = MSG_U(M_LDAP_MAINMENU_SYSTEM,"Auth");
00017 const char *key_ldapmain_profile = MSG_U(M_LDAP_MAINMENU_PROFILE,"Profile");
00018 const char *key_ldapmain_setup = MSG_U(M_LDAP_MAINMENU_SETUP,"Module setup");
00019
00020 DIALOG_MENU dia;
00021 if (mode_ldap_client) {dia.new_menuitem("ldapconf","",key_ldapmain_client);}
00022 if (mode_ldap_system) {dia.new_menuitem("ldapconf","",key_ldapmain_system);}
00023 if (mode_ldap_profile) {dia.new_menuitem("ldapconf","",key_ldapmain_profile);}
00024 if (mode_ldap_directory) {dia.new_menuitem("ldapconf","",key_ldapmain_directory);}
00025 if (mode_ldap_server) {dia.new_menuitem("ldapconf","",key_ldapmain_server);}
00026
00027 dia.new_menuitem("ldapconf","",key_ldapmain_setup);
00028 int nof = 0;
00029 while (1){
00030 MENU_STATUS code = dia.editmenu (MSG_U(T_LDAP_MENU,"LDAP")
00031 ,MSG_U(I_LDAP_MENU
00032 ,"LDAPconf submodules")
00033 ,help_index
00034 ,nof,0);
00035 if (code == MENU_ESCAPE || code == MENU_QUIT){
00036 break;
00037 }else{
00038 const char *key = dia.getmenustr(nof);
00039 if (key == key_ldapmain_server){
00040 ldap_mainmenu_server();
00041 }else if (key == key_ldapmain_directory){
00042 // ldap_mainmenu_directory();
00043 ldap_db_select();
00044 }else if (key == key_ldapmain_client){
00045 ldap_mainmenu_client();
00046 }else if (key == key_ldapmain_system){
00047 ldap_mainmenu_system();
00048 }else if (key == key_ldapmain_profile){
00049 ldap_mainmenu_profile();
00050 }else if (key == key_ldapmain_setup){
00051 ldapconf_setup();
00052 }
00053 }
00054 }
00055 }
|
|
|
Definition at line 60 of file menus.cc. Referenced by ldap_mainmenu(). 00061 {
00062 const char *key_useredit_tool = MSG_U(M_USERINFO_TOOL,"Userinfo");
00063 // const char *key_ldapclient_user = MSG_U(M_LDAP_USER_TOOLS,"Tools");
00064 const char *key_ldapclient_config = MSG_U(M_LDAP_MAIN_CLIENT_CONFIG,"Config");
00065
00066 DIALOG_MENU dia;
00067
00068 dia.new_menuitem("ldapconf","",key_useredit_tool);
00069 // dia.new_menuitem("ldapconf","",key_ldapclient_user);
00070 dia.new_menuitem("ldapconf","",key_ldapclient_config);
00071
00072 int nof = 0;
00073 while (1){
00074 MENU_STATUS code = dia.editmenu (MSG_U(T_MAINMENU_CLIENT,"Client")
00075 ,MSG_U(I_MAINMENU_CLIENT,"LDAP client")
00076 ,help_ldap
00077 ,nof,0);
00078 if (code == MENU_ESCAPE || code == MENU_QUIT){
00079 break;
00080 }else{
00081 const char *key = dia.getmenustr(nof);
00082
00083 if (key == key_useredit_tool){
00084 profile_select();
00085 }else if (key == key_ldapclient_config){
00086 ldap_client_config();
00087 // }else if (key == key_ldapclient_user){
00088 // ldap_user_menu();
00089 }
00090 }
00091 }
00092 }
|
|
|
Definition at line 97 of file menus.cc. Referenced by MODULE_ldapconf::domenu(), and ldap_mainmenu(). 00098 {
00099 const char *key_ldapserver_control = MSG_U(M_LDAP_MAIN_SERVER_CONTROL,"Control Server");
00100 const char *key_ldapserver_config = MSG_U(M_LDAP_MAIN_SERVER_CONFIG,"Config Server");
00101
00102 DIALOG_MENU dia;
00103 dia.new_menuitem("ldapconf","",key_ldapserver_control);
00104 dia.new_menuitem("ldapconf","",key_ldapserver_config);
00105
00106 int nof = 0;
00107 while (1){
00108 MENU_STATUS code = dia.editmenu (MSG_U(T_MAINMENU_SERVER,"Server menu")
00109 ,MSG_U(I_MAINMENU_SERVER,"Server menu")
00110 ,help_ldap
00111 ,nof,0);
00112 if (code == MENU_ESCAPE || code == MENU_QUIT){
00113 break;
00114 }else{
00115 const char *key = dia.getmenustr(nof);
00116 if (key == key_ldapserver_config){
00117 ldap_server_config();
00118 }else if (key == key_ldapserver_control){
00119 ldap_server_control();
00120 }
00121 }
00122 }
00123 }
|
|
|
Definition at line 128 of file menus.cc. 00129 {
00130 const char *key_ldapdb_config = MSG_U(M_LDAP_DB_CONFIG,"Directory config");
00131
00132 DIALOG_MENU dia;
00133 dia.new_menuitem("ldapconf","",key_ldapdb_config);
00134
00135 int nof = 0;
00136 while (1){
00137 MENU_STATUS code = dia.editmenu (MSG_U(T_MAINMENU_DIRECTORY,"Directory menu")
00138 ,MSG_U(I_MAINMENU_DIRECTORY,"Directory mode")
00139 ,help_ldap
00140 ,nof,0);
00141 if (code == MENU_ESCAPE || code == MENU_QUIT){
00142 break;
00143 }else{
00144 const char *key = dia.getmenustr(nof);
00145 if (key == key_ldapdb_config){
00146 ldap_db_select();
00147 }
00148 }
00149 }
00150 }
|
|
|
Definition at line 155 of file menus.cc. Referenced by ldap_mainmenu(). 00156 {
00157 const char *key_ldapsystem_config = MSG_U(M_LDAP_MAIN_SYSTEM_CONFIG,"LDAP Auth");
00158 const char *key_nss_config = MSG_U(M_NSS_CONFIG,"Config NSS");
00159
00160 DIALOG_MENU dia;
00161 dia.new_menuitem("ldapconf","",key_ldapsystem_config);
00162 if (mode_ldap_devel) {dia.new_menuitem("ldapconf","",key_nss_config);}
00163 int nof = 0;
00164 while (1){
00165 MENU_STATUS code = dia.editmenu (MSG_U(T_MAINMENU_SYSTEM,"LDAP Auth")
00166 ,MSG_U(I_MAINMENU_SYSTEM,"Configuratin of LDAP NSS and PAM, used for system authentication.")
00167 ,help_ldap
00168 ,nof,0);
00169 if (code == MENU_ESCAPE || code == MENU_QUIT){
00170 break;
00171 }else{
00172 const char *key = dia.getmenustr(nof);
00173
00174 if (key == key_ldapsystem_config){
00175 ldap_system_config();
00176 }else if (key == key_nss_config){
00177 nss_config();
00178 }
00179 }
00180 }
00181 }
|
|
|
Definition at line 234 of file menus.cc. Referenced by ldap_mainmenu(). 00235 {
00236 const char *key_client_profiles = MSG_U(M_LDAP_PROFILE_CONFIG,"Directory profiles");
00237 const char *key_dbform_config = MSG_U(M_LDAP_DBFORM_CONFIG,"Form profiles");
00238 const char *key_bind_config = MSG_U(M_LDAP_BIND_CONFIG,"Binding profiles");
00239 // const char *key_userinfo_config = MSG_U(M_USERINFO_CONFIG,"Userinfo config");
00240
00241 DIALOG_MENU dia;
00242 int nof = 0;
00243 const char *key;
00244
00245 dia.new_menuitem("ldapconf","",key_client_profiles);
00246 dia.new_menuitem("ldapconf","",key_dbform_config);
00247 dia.new_menuitem("ldapconf","",key_bind_config);
00248 // if (mode_ldap_userinfo) {dia.new_menuitem("ldapconf","",key_userinfo_config);}
00249
00250 while (1){
00251 MENU_STATUS code = dia.editmenu (MSG_U(T_MAINMENU_PROFILE,"Profile menu")
00252 ,MSG_U(I_MAINMENU_PROFILE,"Manage directory profiles")
00253 ,help_formclient
00254 ,nof,0);
00255 key = dia.getmenustr(nof);
00256
00257 if (code == MENU_ESCAPE || code == MENU_QUIT){
00258 break;
00259 }else if (key == key_dbform_config){
00260 formprofile_edit();
00261 }else if (key == key_bind_config){
00262 bindprofile_edit();
00263 }else if (key == key_client_profiles){
00264 profile_edit("test");
00265 // }else if (key == key_userinfo_config){
00266 // profile_edit("userinfo");
00267 }
00268 }
00269 }
|
|
|
Definition at line 274 of file menus.cc. 00275 {
00276 const char *master_global = MSG_U(M_MASTER_GLOBAL,"Server");
00277 const char *master_database = MSG_U(M_MASTER_DATABASE,"Directory");
00278
00279 DIALOG_MENU dia;
00280 dia.new_menuitem("ldapconf","",master_global);
00281 dia.new_menuitem("ldapconf","",master_database);
00282
00283 int nof = 0;
00284 while (1){
00285 MENU_STATUS code = dia.editmenu (MSG_U(T_MASTER_MENU,"LDAP server config")
00286 ,MSG_U(I_MASTER_MENU
00287 ,"Select server or directory settings")
00288 ,help_ldap
00289 ,nof,0);
00290 if (code == MENU_ESCAPE || code == MENU_QUIT){
00291 break;
00292 }else{
00293 const char *key = dia.getmenustr(nof);
00294 if (key == master_global){
00295 ldap_server_config();
00296 }else if (key == master_database){
00297 ldap_db_select();
00298 }
00299 }
00300 }
00301 }
|
1.2.1 written by Dimitri van Heesch,
© 1997-2000