Skip to content

Commit 38de36e

Browse files
committed
Working on aup screen
1 parent 9bab8e0 commit 38de36e

File tree

6 files changed

+262
-112
lines changed

6 files changed

+262
-112
lines changed

libxrdp/xrdp_sec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,8 @@ xrdp_sec_process_logon_info(struct xrdp_sec *self, struct stream *s)
954954
/*
955955
* Ignore autologin requests if the password is empty. System managers
956956
* who really want to allow empty passwords can do this with a
957-
* special session type */
957+
* special session type
958+
*/
958959
if (len_password == 0 && self->rdp_layer->client_info.rdp_autologin)
959960
{
960961
LOG(LOG_LEVEL_DEBUG,

xrdp/xrdp.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ int
176176
xrdp_wm_can_resize(struct xrdp_wm *self);
177177
void
178178
xrdp_wm_mod_connect_done(struct xrdp_wm *self, int status);
179+
void
180+
xrdp_wm_paint_text_list(struct xrdp_painter *painter, struct list *text_list,
181+
struct xrdp_bitmap *wnd, int text_color, int x, int y);
179182

180183
/* xrdp_process.c */
181184
struct xrdp_process *

xrdp/xrdp.ini.in

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ new_cursors=true
8787
use_fastpath=both
8888
; when true, userid/password *must* be passed on cmd line
8989
#require_credentials=true
90+
; when true, the login window will always be displayed
91+
always_show_login_window=true
9092
; when true, the userid will be used to try to authenticate
9193
#enable_token_login=true
9294
; You can set the PAM error text in a gateway setup (MAX 256 chars)
@@ -137,8 +139,8 @@ ls_top_window_bg_color=003057
137139
; larger, and also increase <ls_btn_ok_y_pos> and <ls_btn_cancel_y_pos>
138140
; below
139141
;
140-
ls_width=350
141-
ls_height=360
142+
ls_width=690
143+
ls_height=650
142144

143145
; login screen background color in RGB format
144146
ls_bg_color=f0f0f0
@@ -164,29 +166,36 @@ ls_logo_filename=
164166
ls_logo_transform=scale
165167
ls_logo_width=250
166168
ls_logo_height=110
167-
ls_logo_x_pos=55
169+
ls_logo_x_pos=220
168170
ls_logo_y_pos=35
169171

170172
; for positioning labels such as username, password etc
171-
ls_label_x_pos=30
173+
ls_label_x_pos=195
172174
ls_label_width=68
173175

176+
; for positioning the text of the acceptable use policy
177+
ls_acceptable_use_policy_filename=/home/christopher/policy_text.txt
178+
ls_acceptable_use_x_pos=30
179+
ls_acceptable_use_y_pos=240
180+
ls_acceptable_use_row_height=20
181+
ls_acceptable_use_width=800
182+
174183
; for positioning text and combo boxes next to above labels
175-
ls_input_x_pos=110
184+
ls_input_x_pos=275
176185
ls_input_width=210
177186

178187
; y pos for first label and combo box
179188
ls_input_y_pos=158
180189

181190
; OK button
182-
ls_btn_ok_x_pos=142
183-
ls_btn_ok_y_pos=308
191+
ls_btn_ok_x_pos=490
192+
ls_btn_ok_y_pos=600
184193
ls_btn_ok_width=85
185194
ls_btn_ok_height=30
186195

187196
; Cancel button
188-
ls_btn_cancel_x_pos=237
189-
ls_btn_cancel_y_pos=308
197+
ls_btn_cancel_x_pos=585
198+
ls_btn_cancel_y_pos=600
190199
ls_btn_cancel_width=85
191200
ls_btn_cancel_height=30
192201

0 commit comments

Comments
 (0)