| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
svn path=/tags/GDM2_2_19_2; revision=4960
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-04-02 William Jon McCann <mccann@jhu.edu>
* common/Makefile.am:
* common/gdm-common.c: (v4_v4_equal), (v6_v6_equal),
(gdm_address_equal), (gdm_address_is_loopback),
(gdm_address_get_info):
* common/gdm-common.h:
* common/gdm-config.c: (gdm_config_peek_value),
(gdm_config_get_value), (gdm_config_peek_value_for_id),
(gdm_config_peek_string_for_id), (gdm_config_get_string_for_id),
(gdm_config_get_int_for_id), (gdm_config_set_int_for_id):
* common/gdm-config.h:
* common/gdm-log.c: (log_level_to_priority_and_prefix),
(gdm_log_default_handler), (gdm_log_set_debug), (gdm_log_init),
(gdm_log_shutdown):
* common/gdm-log.h:
* configure.ac:
* daemon/Makefile.am:
* daemon/auth.c: (add_auth_entry), (add_auth_entry_for_addr),
(get_local_auths), (gdm_auth_user_add), (gdm_auth_set_local_auth),
(gdm_auth_free_auth_list):
* daemon/choose.c: (get_first_address_for_node), (gdm_choose_data),
(gdm_choose_indirect_alloc),
(gdm_choose_indirect_dispose_empty_id),
(gdm_choose_indirect_lookup_by_chosen),
(gdm_choose_indirect_lookup), (gdm_choose_indirect_dispose):
* daemon/choose.h:
* daemon/cookie.c:
* daemon/cookie.h:
* daemon/display.c: (gdm_display_manage), (count_session_limits),
(gdm_display_dispose), (gdm_display_lookup):
* daemon/display.h:
* daemon/errorgui.c: (setup_dialog), (gdm_errorgui_error_box_full),
(gdm_errorgui_error_box), (gdm_errorgui_failsafe_question),
(gdm_errorgui_failsafe_yesno), (gdm_errorgui_failsafe_ask_buttons):
* daemon/errorgui.h:
* daemon/filecheck.c: (gdm_file_check), (gdm_auth_file_check):
* daemon/gdm-daemon-config.c: (gdm_daemon_config_get_display_list),
(gdm_daemon_config_display_list_append),
(gdm_daemon_config_display_list_insert),
(gdm_daemon_config_display_list_remove),
(gdm_daemon_config_get_bool_for_id),
(gdm_daemon_config_get_int_for_id),
(gdm_daemon_config_get_string_for_id), (handle_no_displays),
(gdm_daemon_config_parse):
* daemon/gdm-daemon-config.h:
* daemon/gdm-net.c:
* daemon/gdm-net.h:
* daemon/gdm.c: (mark_display_exists), (gdm_daemonify),
(gdm_start_first_unborn_local), (gdm_final_cleanup),
(deal_with_x_crashes), (gdm_safe_restart), (gdm_try_logout_action),
(main), (order_exists), (get_new_order), (gdm_handle_message),
(find_display), (handle_flexi_server), (handle_dynamic_server),
(gdm_handle_user_message):
* daemon/gdm.h:
* daemon/gdmconsolekit.c: (get_path_array_from_iter):
* daemon/gdmconsolekit.h:
* daemon/md5.h:
* daemon/misc.c: (gdm_clearenv_no_lang), (gdm_get_free_display),
(gdm_exec_wait), (gdm_fork_extra), (gdm_wait_for_extra),
(gdm_address_peek_local_list), (gdm_address_is_local),
(fillout_addrinfo), (gdm_gethostbyname), (gdm_gethostbyaddr),
(gdm_hostent_copy):
* daemon/misc.h:
* daemon/server.c: (gdm_exec_fbconsole), (gdm_server_spawn):
* daemon/server.h:
* daemon/slave.c: (get_runlevel), (gdm_slave_start),
(focus_first_x_window), (run_config), (play_login_sound),
(gdm_slave_greeter), (send_chosen_host), (gdm_slave_chooser),
(session_child_run), (gdm_slave_session_start),
(gdm_slave_session_stop), (check_for_interruption),
(gdm_child_exit), (gdm_slave_exec_script),
(gdm_parse_enriched_login), (gdm_is_user_valid):
* daemon/slave.h:
* daemon/verify-crypt.c: (gdm_verify_user),
(gdm_verify_setup_user):
* daemon/verify-pam.c: (gdm_verify_pam_conv),
(gdm_verify_standalone_pam_conv), (gdm_verify_user),
(gdm_verify_setup_user), (gdm_verify_cleanup), (gdm_verify_check):
* daemon/verify-shadow.c: (gdm_verify_user),
(gdm_verify_setup_user):
* daemon/verify.h:
* daemon/xdmcp.c: (gdm_xdmcp_displays_from_host),
(gdm_xdmcp_display_lookup_by_host), (ai_family_str), (ai_type_str),
(ai_protocol_str), (ai_flags_str), (debug_addrinfo),
(gdm_xdmcp_create_socket), (gdm_xdmcp_bind), (gdm_xdmcp_init),
(gdm_xdmcp_run), (gdm_xdmcp_close), (gdm_xdmcp_decode_packet),
(gdm_xdmcp_handle_query), (set_port_for_request),
(set_address_for_request), (gdm_xdmcp_send_forward_query),
(gdm_forward_query_alloc), (gdm_forward_query_lookup),
(gdm_forward_query_dispose), (create_sa_from_request),
(gdm_xdmcp_handle_forward_query), (gdm_xdmcp_send_willing),
(gdm_xdmcp_send_unwilling),
(gdm_xdmcp_really_send_managed_forward), (managed_forward_handler),
(gdm_xdmcp_send_managed_forward),
(gdm_xdmcp_send_got_managed_forward), (gdm_xdmcp_handle_request),
(gdm_xdmcp_send_accept), (gdm_xdmcp_send_decline),
(gdm_xdmcp_handle_manage), (gdm_xdmcp_handle_managed_forward),
(gdm_xdmcp_whack_queued_managed_forwards),
(gdm_xdmcp_handle_got_managed_forward), (gdm_xdmcp_send_refuse),
(gdm_xdmcp_send_failed), (gdm_xdmcp_handle_keepalive),
(gdm_xdmcp_send_alive), (gdm_xdmcp_host_allow),
(gdm_xdmcp_display_alloc), (gdm_xdmcp_display_lookup),
(gdm_xdmcp_display_dispose_check), (gdm_xdmcp_displays_check),
(gdm_xdmcp_recount_sessions):
* daemon/xdmcp.h:
* gui/Makefile.am:
* gui/gdmXnestchooser.c:
* gui/gdmchooser.c: (gdm_chooser_host_alloc), (gdm_chooser_cancel),
(gdm_chooser_manage), (gdm_read_config), (gdm_reread_config),
(main):
* gui/gdmcomm.c: (do_command), (gdmcomm_call_gdm_real):
* gui/gdmcommon.c: (gdm_common_log_init),
(gdm_common_log_set_debug), (gdm_common_fail_exit),
(gdm_common_fail_greeter), (gdm_common_info), (gdm_common_error),
(gdm_common_warning), (gdm_common_debug), (gdm_common_expand_text):
* gui/gdmcommon.h:
* gui/gdmconfig.c:
* gui/gdmdynamic.c: (main):
* gui/gdmflexiserver.c: (main):
* gui/gdmlanguages.c:
* gui/gdmlogin.c: (gdm_login_restart_handler),
(gdm_login_halt_handler), (gdm_login_use_chooser_handler),
(gdm_read_config), (gdm_reread_config), (main):
* gui/gdmsession.c:
* gui/gdmsetup.c:
* gui/gdmuser.c:
* gui/gdmwm.c:
* gui/greeter/greeter.c: (gdm_read_config),
(greeter_reread_config), (main):
* gui/greeter/greeter_item_customlist.c:
* gui/greeter/greeter_item_pam.c:
* gui/greeter/greeter_item_timed.c:
* gui/greeter/greeter_item_ulist.c:
* gui/greeter/greeter_parser.c: (parse_show):
* gui/greeter/greeter_system.c: (query_greeter_restart_handler),
(query_greeter_halt_handler), (greeter_restart_handler),
(greeter_halt_handler), (greeter_chooser_handler):
Use fewer global variables.
Separate monolithic gdm.h into component parts.
Use the Glib message logging API to write to syslog.
Cleans up the ipv4/6 handling in the daemon to use a common code
patch and be mostly AF- independent.
Add a few convenience functions to gdm-config for get/set by ID.
Patch from bug #376010
svn path=/trunk/; revision=4762
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-03-20 Brian Cameron <brian.cameron@sun.com>
* configure.ac, autogen.sh, gui/gdmlanguages.c, gui/gdmconfig.h
gui/gdmuser.c, gui/gdmwm.c, gui/gdmdynamic.c, gui/gdmlogin.c,
gui/gdmphotosetup.c, gui/gdmsession.c, gui/gdmXnestchooser.c,
gui/greeter/greeter.c, gui/gdmcommon.c, gui/gdmcomm.c,
gui/gdmflexiserver.c, gui/gdmsetup.c, gui/gdmchooser.c,
gui/misc.c, gui/gdmmconfig.c, gui/Makefile.am
gui/greeter/greeter_item_customlist.c,
gui/greeter/greeter_canvas_item.c gui/greeter/greeter_parser.c,
gui/greeter/greeter_item.c, gui/greeter/greeter_item_ulist.c,
gui/greeter/greeter_item_timed.c, gui/greeter/greeter_session.c,
gui/greeter/greeter_system.c, gui/greeter/greeter_item_pam.c,
gui/greeter/Makefile.am, gui/greeter/themes/Makefile.am,
common/gdm-common.[ch], common/gdm-common-config.[ch],
common/ve-signal.[ch], common/Makefile.am, daemon/errorgui.c,
daemon/gdmconfig.h, daemon/display.c, daemon/gdm.c, daemon/xdmcp.c,
daemon/filecheck.c, daemon/verify-pam.c, daemon/getvt.c,
daemon/auth.c, daemon/server.c, daemon/cookie.c, daemon/slave.c,
daemon/server.h, daemon/misc.c, daemon/gdm-net.c,
daemon/gdmconfig.c, daemon/Makefile.am: Phase 1 of removing
vicious-extensions and replacing with a rewrite. Changes include:
- Create a common directory to build libgdmcommon, used by the
daemon and the GUI's.
- Add a convenience layer over GKeyFile for dealing with compound
keys.
- Replace selected ve functions like ve_split
- Remove glade_helper
- Code improvements and leaks.
Fix by William Jon McCann <mccann@jhu.edu>. Refer to bug
#355425.
svn path=/trunk/; revision=4689
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-01-31 Brian Cameron <brian.cameron@sun.com>
* gui/greeter/greeter_item_customlist.c,
gui/greeter/greeter_canvas_item.c,
gui/greeter/greeter_canvas_text.c,
gui/greeter/greeter_session.c,
gui/gdmXnestchooser.c, gui/gdmchooser.c,
gui/gdmconfig.[ch], daemon/xdmcp.c,
daemon/verify-pam.c, daemon/server.c,
daemon/gdmconfig.c, daemon/errorgui.c,
daemon/misc.c: : Fix warnings and fix an
assertion in gdm because it called
gdm_xdmcp_send_forward_query also for IPv6.
Patch by Ludwig Nussel.
svn path=/trunk/; revision=4558
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-10-20 Brian Cameron <brian.cameron@sun.com>
* docs/C/gdm.xml, gui/gdmsession.[ch], gui/greeter/greeter.c,
gui/greeter/greeter_action_language.[ch],
gui/greeter/greeter_canvas_item.[ch], gui/greeter/greeter_parser.c,
gui/greeter/greeter_item_customlist.[ch],
gui/greeter/greeter_session.[ch],
gui/greeter/themes/*/*xml: Now support "combo" style lists and
support "language" and "session" lists which can be used directly
in the theme rather than having to use the session/language
pop-ups. Suggestion from Boston GNOME Summit. The defaul themes
now support these combo boxes.
* gui/greeter_item_ulist.c: Cleanup
* gui/gdmconfig.[ch]: Renamed function to gdm_save_customlist_data,
so it is more clear what the function does.
|
|
|
|
|
|
|
|
| |
2006-09-27 Brian Cameron <brian.cameron@sun.com>
* gui/gdmconfig.c, gui/greeter/greeter_parser.c: Fix more
memory leaks. Fixes bug #357879. Patch provided by Kjartan
Maraas. <kmaraas@gnome.org>.
|
|
|
|
|
|
|
|
| |
2006-09-26 Brian Cameron <brian.cameron@sun.com>
* gui/gdmconfig.c, gui/greeter/greeter.c, gui/greeter/greeter_parser.c:
Fix memory leaks. Fixes bug #357879. Patch provided by Kjartan
Maraas. <kmaraas@gnome.org>.
|
|
|
|
|
|
|
| |
2006-06-09 Brian Cameron <brian.cameron@sun.com>
* daemon/gdmconfig.c, gui/gdmconfig.c, gui/gdmsetup.c: Fix
more warnings.
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-06-09 Brian Cameron <brian.cameron@sun.com>
* daemon/verify-pam.c: Fix autologin Pam service name. Fixes bug
#344191.
* daemon/gdmconfig.c, gui/gdmconfig.c, gui/gdmdynamic.c,
gui/gdmsetup.c, gui/greeter/greeter.c,
gui/greeter/greeter_canvas_item.c, gui/greeter/greeter_geometry.c
gui/greeter/greeter_item_pam.c, gui/greeter/greeter_parser.c,
gui/greeter/greeter_system.c, utils/prefetch.c: Fix warnings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-05-12 Christian Kirbach <Christian.Kirbach@siemens.com>
* daemon/gdm.c, gui/gdmXnestchosser.c, gui/gdmchooser.c,
gui/gdmflexiserver.c: stop using popt in favour of glib's GOption
command line parsing.
* docs/C/gdm.xml: -nodaemon command line option has become --nodaemon.
GDM User Commands section has been rewritten accordingly. Also the
interface stability sections reflects the new changes.
* daemon/gdm.c (gdm_handle_user_message): Fix compiler warning (too
few arguments).
* gui/gdmconfig.c (gdm_config_get_xservers): Remove two obsolete
variable declarations.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-04-26 Brian Cameron <brian.cameron@sun.com>
Adding per-display configuration support to GDM. Now if user has
a file named /etc/gdm/custom.conf:<displaynum>, the settings in this
file will override the /usr/share/gdm/defaults.conf and
/etc/X11/gdm/custom.conf settings. Only keys that affect the GUI
behavior are supported. These include those in the "gui" and
"greeter" sections and the security/PamStack key.
* daemon/gdm.c: Update GET_CONFIG command so it accepts a display
argument. It is backwards compatible and will return the per-display
setting if this is passed in, or the non-display value if not
passed in. Fix bug that caused PreFetch key to not just return
the once as it is supposed to.
* daemon/gdmconfig.[ch], jui/gdmconfig.c: Updated to support
per-display configuration.
* daemon/gdm.h: Updated documentation for new command. Corrected some
errors.
* daemon/verify-pam.c, daemon/gdmconfig.c config/gdm.conf.in: Add
security/PamStack configuration variable as a per-display setting.
This allows the sysadmin to specify a different PAM stack, if desired
and also allows customization per display. Also added key info for
some BackgroundProgram keys that were missing.
* config/PreSession.in: now requests configuration data per-display.
Will use normal configuration if no per-display config files.
* gui/.cvsignore: Add gdmsetup.desktop.in
* gui/gdmdynamic.: Improve usage warning.
* gui/gdmlogin.c: Add some debug
* docs/C/gdm.xml: Updated docs to reflect new per-display config.
|
|
|
|
|
|
| |
2006-02-24 Brian Cameron <brian.cameron@sun.com>
* gui/gdmconfig.c, gui/gdmsetup.c: Clean up memory handling.
|
|
|
|
|
|
| |
2006-02-15 Brian Cameron <brian.cameron@sun.com>
* gui/gdmconfig.c: Fixes to make config work better.
|
|
|
|
|
|
|
|
| |
2006-02-15 Brian Cameron <brian.cameron@sun.com>
* gui/gdmconfig.c: Use g_hash_table_replace instead of freeing
the string value in the hash. This corrects a core dumping
problem with gdmsetup.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A known issue with gdmdynamic is that when a display connects to
the server it generates the gdmdynamic "ADD" and "RELEASE" commands.
On startup, hundreds of displays could send these commands at once
and cause the server too be flooded with sockets requests. Hammering
the socket like this caused me to find and fix a number of problems
that improve socket reliability for general GDM use. I also enhanced
gdmdynamic so it is more sensitive to the socket being busy and no
longer overloads it, instead sleeping and retrying if necessary. This
allows gdmdynamic to work if there are hundreds of displays instead of
just a dozen or so.
* daemon/gdm.[ch]: Added new "SERVER_BUSY" sockets command so that
gdmdynamic can sleep before starting new slaves if the daemon is
already busy.
* daemon/gdm-net.[ch]: Bump up MAX_CONNECTIONS from 10 to 15. I notice
that this improves performance significantly when hammering the
daemon with connections. Added better comments for this logic and
now debug logs when a subconnection is thrown away. New
gdm_connection_is_server_busy function
* daemon/display.c: Correct DYNAMIC_REMOVE so it works and fixes bug
#326796. Before it wasn't really removing the displays.
* gui/gdmdynamic.c: Quite a bit of work to make gdmdynamic avoid
flooding the server with sockets requests. Now it sets sockets
retries to 1 and manages sleeping and retries itself.
* gui/gdmconfig.c: Added gdm_config_set_comm_retries so that slaves can
specify how many retries they want the comm logic to use.
* gui/gdmcomm.c: Now do_command returns NULL when it gets back "",
which happens when a subconnection was dropped by the daemon. This
lets the slave try the connection again. Now error messages are
always logged, not just when debug is turned on. Added
gdmcomm_did_connection_fail and gdmcomm_set_allow_sleep so
gdmdynamic can control the behavior of how the connection works.
* gui/gdmcommon.c, gui/gdmchooser.c, gui/gdmlogin.c, gui/greeter/greeter.c:
Fix gdm_common_fail so it doesn't generate compile errors when building
with GCC. Fixes bug #330480.
* docs/C/gdm.xml: Cleaned up section that explains sockets commands so
that they are in alphabetical order, added info about SERVER_BUSY
and new gdmdynamic -s and -t options.
* config/gdm.conf: Better description of how debug works, perhaps
I just didn't like the word "spew".
---------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| |
2006-02-07 Brian Cameron <brian.cameron@sun.com>
* gui/gdmconfig.c: Return compiled in value if slave fails
to get a value back from the daemon.
* gui/gdmcomm.c:, gui/gdmconfig.c: Use gdm_common_error
instead of gdm_common_info so message really go to log.
* gui/gdmsession.c: Include needed gdmcommon.h. Missed this
in my previous putback earlier today.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-02-07 Brian Cameron <brian.cameron@sun.com>
This patch resolves some performance issues that I noticed when
testing GDM with the gdmdynamic command. I notice that waiting for
the sockets to timeout made gdmdynamic slower so now all the clients
load all the configuration data in one quick pass and close the
socket. Since the gdm_config_get functions cache the data, the slaves
will not go over the socket to get the data again unless asked to
reread. Bump the maximum messages over the socket from 20 to 80
because gdmlogin pulls about 65 configuration parms over and this
allows all data to be accessed in one connection (and gives a little
room for growth). Improved the way GDM slaves deal with syslog so all
slaves use the same interfaces. Added three missing keys to the daemon
configuration handling code.
* daemon/gdmconfig.c: Add three keys that were missing for background
program support.
* gui/gdmcomm.[ch]: Now if there is a failure connecting to the daemon,
the slave will sleep 1 second before retry (normally retries 5
times). If all retries fail, it will not try sleeping on subsequent
calls to the daemon. This greatly improves performance when the
daemon is flooded with slave requests. In normal usage, this will
likely not happen, but it is good for GDM to not fail so easily.
Added better debug. Added gdm_comm_close function so that slaves
can ask to close the socket when done reading config. Now uses
common syslog functions.
* daemon/gdm.h: Add better comments, rename GDM_SUP_MAX_CONNECTIONS
to GDM_SUP_MAX_MESSAGES which is more accurate, and bump the max
number to 80.
* gui/gdmcommon.h, gui/gdmwm.h, gui/gdmsession.h: Added common syslog
functions to gdmcommon.h and moved some functions that were in
gdmcommon.h to gdmwm.h and gdmsession.h since the implementations
were in those c-files. Renamed functions to make naming consistant.
* gui/gdmXnestchooser, gui/gdmchooser.c, gui/gdmcommon.c,
gui/gdmconfig.c, gui/gdmdynamic.c, gui/gdmflexiserver.c,
gui/gdmlogin.c, gui/gdmphotosetup.c, gui/gdmsession.c, gui/gdmwm.c,
gui/greeter/greeter.c, gui/greeter/greeter_item_ulist.c,
gui/greeter/greeter_session.c, gui/greeter/greeter_system.c: Slaves
close sockets connection when done reading config. Now slaves use
common syslog functions. Naming changes to reflect renaming of
functions in gdmcommon.h/gdmwm.h/gdmsession.h. Better debug.
* daemon/auth.c, daemon/cookie.c, daemon/display.c, daemon/gdm.c,
daemon/gdm-net.c, daemon/misc.c, daemon/slave.c, daemon/xdmcp.c,
gui/gdmlanguages.c, gui/greeter/greeter_canvas_item.c,
gui/gdmsetup.c, vicious-extensions/ve-config.c: Make spacing around
"++" more consistant. Add better debug in some functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-01-15 Brian Cameron <brian.cameron@sun.com>
* gui/gdmsetup.c: Fix the logo and background file choosers so that
they no longer generate assert warnings. This problem seemed to be
related to the fact that gdmsetup was sometimes setting the logo or
background to NULL without the user actually changing the values.
Now the "selection-changed" handler is smart enough to never reset
these value to NULL. Also cleaned up some memory management (e.g. we
were not freeing values returned from gtk_file_chooser_get_filename,
etc.)
* gui/gdmconfig.c: Use the newkey instead of key when calling
GET_CONFIG.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-01-04 Brian Cameron <brian.cameron@sun.com>
* daemon/slave.c: Make error message more clear when session file
is invalid. Now it says what session file had the problem.
This fixes bug #322699.
* gui/gdmconfig.c: Now the gdm_config_get_xserver_details
function is more robust, and handles NULL return values
better and supports PRIORITY.
* gui/gdmsetup.c: Now that gdmconfig reads in the priority value,
gdmsetup will write it back out if that server is modified.
However, gdmsetup still doesn't allow you to modify the
priority value. Probably should add a spinbutton to the
dialog.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2005-12-21 Brian Cameron <brian.cameron@sun.com>
After two months, the redesign of GDM's internal configuration is
finally reaching a close. Now GDM users are instructed to not modify
the gdm.conf file directly and instead put any cutomizations in a
separate file called gdm.conf-custom (read the comments in both files).
gdmsetup now modifies the gdm.conf-custom file. The GDM daemon will
now use values in gdm.conf-custom first and the default values in
gdm.conf if no value is defined in gdm.conf-custom. Benefits:
1) Now GDM truly supports system-wide and machine-specific config.
System wide configuration is when the sysadmin wants to share the
main gdm.conf file across multiple systems on a shared file system
(possible by building GDM with the --with-configdir option or by
running GDM with the --config option). Specific systems can
override defaults by modifying the gdm.conf-custom file.
2) Distros can stomp the main gdm.conf file on upgrade knowing that any
user changes are stored in a separate file. For best backwards
compatibility, distros will need to move the gdm.conf file to
gdm.conf-custom if the gdm.conf file exists on the system but the
gdm.conf-custom file does not.
3) Making this work required a lot of cleanup in the way GDM manages
its configuration files. For example, now config options are
managed via access functions, and do not depend on non-static
globals being shared across files. The GET_CONFIG and UPDATE_CONFIG
commands work better and do not require special tweaking when adding
new config options. Vicious-extensions is now only included in a
few files that need to know how to access the config files directly.
This makes GDM support a popular feature in CDE which works similarly.
(config files in /etc/dt/config take precidence over the ones in
/usr/dt/config).
* daemon/gdmconfig.[ch]: Now supports reading configuration values
(including "servers" and "server-foo" sections from gdm.conf-custom
and then from gdm.conf if not found in the custom file. Now store
translated strings in a separate hash since this improves
performance. Fix GET_SERVER_DETAILS so it works better and
update config can now update server-foo sections via the
"xservers/PARMAETERS" key.
* gui/gdmsetup.c: Now only writes to the gdm.conf-custom file and isa
smart enough to just delete the key if the value will be the same as
in the gdm.conf file. Fixed some core dumping issues caused by my
change to make gdmsetup use the new gdmconfig functions for getting
configuration data from the server. This work cleaned up the code
quite a bit. Removed the "--config" option from gdmsetup since this
change makes it edit the configuration of the running GDM daemon
instead of a program that edits a particular configuration file.
* daemon/gdm.h, doc/C/gdm.xml: Updated docs with info about how
configuration works nwo. Now sockets protocol info is the same
in both documents.
* daemon/gdm.c: Fix GET_SERVER_DETAILS to support "ID" and some
cleanup.
* gui/Makefile.am, daemon/Makefile.am: Support --with-configdir option
which got broken.
* config/gdm.conf.in: Updated comments to mention that this file is not
to be edited. Cleaned up the file so it is more readible.
* config/Makefile.am: Install gdm.conf-custom and move gdm.conf to
gdm.conf-custom if it is modified and gdm.conf-custom is not already
installed. If it is changed and gdm.conf-custom already exists, move
it to gdm.conf.org.
* gui/gdmchooser.c, gui/gdmflexiserver.c: Remove unused getting of the
configuration file.
* gui/gdmconfig.[ch]: Add function to tell config to never_cache, which
is needed by gdmsetup.
* config/gdm.conf-custom: Added template file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2005-12-12 Brian Cameron <brian.cameron@sun.com>
* daemon/gdm.[ch], daemongdmconfig.[ch]: Add
GET_SERVER_LIST and GET_SERVER_DETAILS
sockets functions so that gdmflexiserver and
gdmconfig do not need to access the config
file for these, instead using the sockets
protocol.
* docs/C/gdm.xml: Add docs for new sockets
commands.
* configure.ac, gui/Makefile.am: Remove some
libgnome/libgnomeui dependencies.
* gui/gdmcomm.c: Now close sockets connection
after 20 messages since the daemon gets mad
if you send more.
* gui/gdmconfig.[ch]: New client functions for
getting server information via sockets.
* gui/gdmflexiserver.c: Remove libgnome
dependencies and now use new config
mechanism for getting server info.
* gui/gdmsetup.c: Now use new config
mechanism for reading from config file and
remove libgnome dependencies. Cleaned up
the code a bit. Now we don't call
ve_config_get all over the place, which
seems to speed up the start time.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2005-11-23 Brian Cameron <Brian.Cameron@sun.com>
* daemon/verify-crypt.c, daemon/verify-pam.c,
Convert to using new gdmconfig interfaces.
* daemon/choose.c, daemon/errorgui.c,
daemon/gdm.c, daemon/gdmconfig.c,
daemon/misc.c, daemon/slave.c,
daemon/xdmcp.c, gui/gdmXnestchooser.c,
gui/gdmconfig.c, gui/gdmlogin.c,
gui/greeter/greeter_canvas_textm.c: Fix
compiler warnings. Patch provided by
Frederic Crozat on gdm-list@gnome.org.
Also make sure that all functions have
a space before the "(" to better follow
coding style guide.
* daemon/cookie.c, daemon/display.c,
daemon/gdm-net.c, daemon/getvt.c,
daemon/md5.c, daemon/server.c,
daemon/verify-pam.c, gui/gdmchooser.c,
gui/gdmcommon.c, gui/gdmdynamic.c,
gui/gdmlanguages.c, gui/gdmuser.c,
gui/greeter/greeter.c,
gui/greeter/greeter_action_language.c,
gui/greeter/greeter_action_canvas_item.c,
gui/greeter/greeter_session.c,
gui/greeter/greeter_system.c: Make
sure that all functions have a space
before the "(" to better follow coding
style guide.
|
|
|
|
|
|
|
|
| |
2005-11-22 Brian Cameron <Brian.Cameron@sun.com>
* gui/gdmconfig.c: Remove value_set_hash
since it isn't really needed. Further
cleanup.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2005-11-21 Brian Cameron <Brian.Cameron@sun.com>
This further improves GDM configuration so that
now only the GDM daemon parses and manages the
configuration file. Most client programs use
the GET_CONFIG command to access needed data.
This simplifies the configuration logic and
puts all configuration parsing in one place
and gets rid of a lot of global variables that
were making the code look messy. This also
gets rid of several places where gnome_config
deprecated functions were being used. I have
cleaned up the code so that the vicious-extensions
code is more localized in gui/gdmconfig.[ch].
Some work is left to do: gdmflexiserver still
uses gnome_config functions and gdmconfig should
use the new functions for reading from the
configuration file. Some compile issues fixed
as highlghted by dmacks@netspace.org to fix
bug #322083.
* NEWS: Fixed comment.
* daemon/gdm.h: Further cleanup of #define's so
that they better match the names of the config
keys.
* daemon/gdm.c: Now GET_CONFIG returns "OK" if
the key is valid but has no value when it
is a string. Now free return value from
gdm_config_to_string.
* daemon/Makefile.am, gui/greeter/Makefile.am:
Now the daemon validates the greeter's theme
directory, so pass the default value into the
daemon and not the greeter.
* daemon/gdmconfig.h: Added gdm_is_valid_key
and corrected prototype for
gdm_set_user_session_lang.
* daemon/slave.c: Fix warning and compile errors.
* daemon/gdmconfig.c: Further fleshed out.
Now it supports a few additional keys I
overlooked. It now validates all keys used
by the slaves. Now handles translated string.
Further refactored the code.
* gui/Makefile.am: Added gdmconfig.[ch] to
common library.
* gui/gdmconfig.[ch]: New functions for
accessing configuration data for slaves.
* gui/gdmXnestchooser.c, gui/gdmlanguages.c,
gui/gdmsession.h, gui/gdmuser.h, gui/gdmwm.c,
gui/misc.c, gui/greeter/greeter_item_capslock.c:
gui/greeter/greeter_item_pam.c: No longer include
vicious.h/viciousui.h, instead gdmconfig.h.
* gui/gdmcomm.c: Fix gdm_check_comm to no
longer require passing in the config file
name.
* gui/gdmcommon.[ch]: Get rid of old
gdm_common_*_same functions that are
replaced with new gui/gdmconfig logic.
Now functions that access config data
use the new functions.
* gui/gdmflexiserver.c: Now displays the
localized string when you use GET_CONFIG
to access a translatable string.
* gui/gdmconfig.c: Now calls update_key in
addition to update_greeters when updating
greeter config data, since the daemon needs
to update the values now when they change.
* gui/gdmchooser.c, gui/gdmdynamic.c,
gui/gdmlogin.c, gui/gdmphotosetup.c,
gui/gdmsession.c, gui/gdmuser.c,
gui/gdm/gdmXnestchooser.c,
gui/greeter/greeter.c,
gui/greeter/greeter_action_language.c,
gui/greeter/greeter_canvas_item.c,
gui/greeter/greeter_item.c,
gui/greeter/greeter_item_customlist.c,
gui/greeter/greeter_item_timed.c,
gui/greeter/greeter_item_list.c,
gui/greeter/greeter_parser.c,
gui/greeter/greeter_session.c,
gui/greeter/greeter_system.c: Updated to
use new configuration functions.
* vicious-extensions/glade-helper.c: Now
include stdlib.h to avoid compiler warnings.
* gui/greeter/greeter.c: Remove unused
gdm_kill_thingies function.
|
|
|
|
|
|
|
| |
Tue May 14 15:40:34 2002 George Lebl <jirka@5z.com>
* gui/Makefile.am: remove all the gdmconfig stuff and add
gdmchooser.gladep and gdmsetup.gladep
|
|
|
|
| |
in gdmconfig
|
|
|
|
|
|
|
|
| |
Fri Mar 15 17:15:25 2002 George Lebl <jirka@5z.com>
* gui/gdmconfig.(c|h|glade2): A first try at making this actually
work. Edit the generated file in glade-2 and while it is ugly
it now actually gets done loading the whole thing.
|
|
|
|
|
| |
* daemon/gdm.c, daemon/slave.c, gui/gdmconfig.c:
Uppercase spelling for "XDMCP" in user-visible strings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mon Jan 21 19:14:28 2002 George Lebl <jirka@5z.com>
* acconfig.h, configure.in: use GETTEXT_PACKAGE
* daemon/gdm.c, daemon/misc.[ch], daemon/verify-pam.c,
daemon/server.c, daemon/slave.c, daemon/display.c:
When displaying something on a console display it only
when the console is UTF-8, which is only true if
"gdmopen vt-is-UTF8 -q" returns 0 status. Else don't
actually translate anything and just print out the english/ASCII
version.
* daemon/verify-pam.c: Better check for existance of the pam
gdm configuration
* daemon/gdm.c, gui/gdmXnestchooser.c, gui/gdmchooser.c,
gui/gdmconfig.c, gui/gdmflexiserver.c, gui/gdmlogin.c,
gui/gdmphotosetup.c: property bind gettext stuff and make
sure we correctly set it up for UTF-8
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fri Jan 11 15:03:25 2002 George Lebl <jirka@5z.com>
* gui/gdmlogin.c: make welcome string 3 times bigger. Also fix
browser to actually work, and when moving make sure never to
go into negative, it's bad form.
* gui/Makefile.am, gui/gdmchooser.c, gui/gdmconfig.c: use the
libglade-convert thingie to make things somewhat work. Also
export symbols to make this somewhat work. the config still
doesn't work, but the chooser mostly should.
|
|
|
|
|
|
|
|
|
| |
Fri Dec 21 18:09:03 2001 George Lebl <jirka@5z.com>
* gui/gdmlogin.c, gui/gdmconfig.c, gui/gdmphotosetup.c,
gui/gdmchooser.c, gui/gdmwm.c: Remove more deprecated things
and minor fixes that were related. Doesn't actually compile
without deprecated things yet, but it's closer now.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Thu Dec 20 16:49:52 2001 George Lebl <jirka@5z.com>
* Merge from stable up to 2.2.5.2 release tag
Thu Dec 20 16:27:40 2001 George Lebl <jirka@5z.com>
* daemon/verify-pam.c: apparently the actually correct
order (Which actually makes sense) is setcred/open_session.
This is apparently the 'offical' word from the linux-pam
people. Though not everybody agrees. Well screw this,
this makes sense, so this is the way it will be damnit :)
* gui/gdmconfig.c: fix saving of server definitions
* gui/gdmlogin.c: add ability to have newlines in the
welcome string by just adding \n into the strings
Thu Dec 06 22:09:11 2001 George Lebl <jirka@5z.com>
* daemon/slave.c: Fix TimedLogin I broke on last commit
* daemon/verify-pam.c: For autologin, still call authenticate,
but use the service gdm-autologin. Also a bit of cleanup.
* config/gdm-autologin, config/Makefile.am: A promiscuous
service. This will let anyone in, gdm uses this for autologin
or timed login when we want to let a user in without a password,
this way we can follow all the proper pam doodaah with
pam_authenticate and all that so we can safely call setcred
Tue Dec 04 20:46:57 2001 George Lebl <jirka@5z.com>
* daemon/gdm.c, daemon/misc.[ch], daemon/display.c: On events where
we fail due to bad configuration, run the text message dialog.
Also if we hit the loop of death outside of XFAILED on a local
display, run a text message telling the user so instead of just
putting this into the syslog. We need more interaction here I
think. But this is better then nothing.
Tue Dec 04 18:44:10 2001 George Lebl <jirka@5z.com>
* daemon/Makefile.am, daemon/verify-pam.c, daemon/verify-crypt.c,
daemon/verify-shadow.c, daemon/verify.h, daemon/misc.[ch],
daemon/slave.c: revamp the PAM support based on a patch
from Karsten Petersen <karsten.petersen@informatik.tu-chemnitz.de>.
Move the open session and setcred back to verify, implement
account checking more properly, especially for auto logins. We
assume the pamh existing when needed. And don't do the weird
ensure hack. Also setgid and initgroups in the verify/setup
function. rename the open_session function to setup_env, since
that's what it does. Also implement more checking of errors
during login process.
* daemon/gdm.c, daemon/errorgui.c: make sure that we're not 'setuid'
looking in the failsafes. Also correctly setup "PATH" from stored
path.
* daemon/slave.c: fix race where USR2 was expected from a
non-existant parent. This can happen when you do 'killall gdm'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fri Nov 30 17:38:47 2001 George Lebl <jirka@5z.com>
* configure.in, gui/Makefile.am, daemon/Makefile.am: fix xinerama
compilation
* gui/gdmconfig.c: define GTK_ENABLE_BROKEN to be able to use GtkText
for now
* gui/gdmlogin.c: fix some s/int/gsize/, accelerators bind to
"activate" signal, and use GNOME_PARAM_ENABLE_SOUND instead
of the argv hack
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fri Nov 16 12:38:30 2001 George Lebl <jirka@5z.com>
Yay! it like all builds and stuff
* gui/gdmlogin.c: fix crash for timed logins
* config/gdm.conf.in, daemon/gdm.h, gui/gdmlogin.c,
gui/gdmconfig.(c|h|glade): Remove the font option, it can now be
done by using the pango markup in the welcome message
* gui/gdmchooser.h gui/gdmlogin.h, gui/Makefile.am: remove useless
header files.
* gui/gdmchooser.c: reorganize the code a bit to remove useless
forward declarations
* gui/gdmchooser.c, gui/gdmlogin.c, gui/gdmconfig.[ch],
gui/gdmflexiserver.c, gui/gdmwm.[ch], gui/misc.h: Port to
pixbuf and gnome2.
* utils/Makefile.am: remove (includedir) to make it not pickup gnome1
headers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fri Nov 16 02:15:06 2001 George Lebl <jirka@5z.com>
* daemon/xdmcp.c: include unistd.h
* Makefile.am, gui/Makefile.am: update for intltool
* configure.in: vicious-extensions doesn't define the envvar
functions
* daemon/auth.c, daemon/gdm.c, daemon/misc.c, daemon/server.c,
daemon/slave.c, gui/gdmXnestchooser.c, gui/gdmconfig.c,
gui/gdmlogin.c: Use change to use the glib functions where
old ve_* or gnome_* functions were used and also change to
use the gnome_(setenv|unsetenv|clearenv) functions.
* gui/gdmwm.c: port to gnome2
* gui/gdmchooser.[ch]: port to gnome2 a bit, remove imlib dep, sanitize
the interface broadcast stuff
* daemon/gdm.c: clean up the signal stuff source thing
|
|
|
|
|
|
|
|
| |
Mon Nov 05 21:28:43 2001 George Lebl <jirka@5z.com>
* configure.in, **/Makefile.am, daemon/*.[ch], utils/*.[ch],
gui/*.[ch]: Begin GNOME 2.0 porting. Not complete yet,
daemon may 'compile', gui doesn't compile yet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Wed Oct 24 17:57:03 2001 George Lebl <jirka@5z.com>
* daemon/gdm.[ch], gui/gdmconfig.(c|glade), config/gdm.conf.in:
Don't pass extra arguments to XKeepsCrashing, and whack the X
configurators option since that is now changed by editting the
XKeepsCrashing script directly.
* config/XKeepsCrashing, config/Makefile.am, config/gettextfoo.h,
po/POTFILES.in, config/extract-shell.sh: Rework the XKeepsCrashing
script, configurator is found from a list in the script. If the
error is a mouse error try the mouseconfig configurator first.
Messages are now gotten by gettext -s directly and extracted
by a simple stupid script, that needs a tad of work still I think.
* docs/C/gdm.sgml: Remove the XKeepsCrashingConfigurators option
|
|
|
|
|
|
|
|
|
|
|
|
| |
Wed Oct 24 01:26:47 2001 George Lebl <jirka@5z.com>
* bin/gdm.[ch], bin/verify-*.c, config/gdm.conf.in,
gui/gdmconfig.(c|glade): Remove the VerboseAuth conf variable,
it provided absolutely zero extra security (since it didn't divulge
any info the user cannot get by other means, and making it
false just made the whole thing less usable and more confusing)
* bin/gdm.c: include locale.h
|
|
|
|
|
|
|
|
|
| |
Tue Sep 11 02:34:47 2001 George Lebl <jirka@5z.com>
* daemon/gdm.h, config/gdm.conf.in, gui/gdmconfig.(c|glade),
gui/gdmlogin.c, docs/C/gdm.sgml: Apply and finish a patch from
Terje Rosten <terjeros@phys.ntnu.no> to add an option to force
24 hour clock on the greeter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sat Sep 01 04:15:38 2001 George Lebl <jirka@5z.com>
* daemon/gdm.h, daemon/xdmcp.c, daemon/choose.[ch]: Change the gdm
extension protocol, the MANAGED_FORWARD passes address of origin
rather then hostname of self. And we now handle the message
correctly. Also on DECLINE, send a descriptive english string
to aid in debugging XDMCP setup.
* configure.in: raise version
* config/gdm.conf.in: add the DisplaysPerHost default
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fri Aug 31 18:12:05 2001 George Lebl <jirka@5z.com>
* config/gdm.conf.in, daemon/gdm.[ch], daemon/xdmcp.c: Add an
xdmcp/Willing script configuration option. To run a script
when the system gets the QUERY command.
* daemon/gdm.c: Fix checks for the chooser and greeter binaries
* gui/gdmconfig.{glade,c}: Add configuration for the Willing
thing
* docs/C/gdm.sgml: Document some of the new configuration keys.
Not everything is documented yet.
|
|
|
|
|
|
|
|
|
| |
Fri Aug 31 17:04:02 2001 George Lebl <jirka@5z.com>
* gui/gdmconfig.c: Fix reading and changing servers with respect
to server numbers. All server numbers are now normalized and
they equal the actual row (such assumptions were made before,
but were not enforced). Also fix some memory leaks.
|
|
|
|
|
|
| |
Fri Aug 31 16:34:58 2001 George Lebl <jirka@5z.com>
* gui/gdmconfig.c: fix writing of servers to config file
|
|
|
|
|
|
|
|
| |
Tue Aug 21 04:42:05 2001 George Lebl <jirka@5z.com>
* gui/gdmconfig.[ch]: Finish the editting of the server definitions.
BTW, this is incredibly evil and ugly code and should be cleaned
up one of these days. I feel sort of dirty for doing it :)
|
|
|
|
|
|
|
| |
Mon Aug 20 01:10:24 2001 George Lebl <jirka@5z.com>
* gui/gdmconfig.c: finish editting of static servers and a bit
of work on server definitions editting.
|
|
|
|
|
|
|
| |
Sun Aug 19 14:47:09 2001 George Lebl <jirka@5z.com>
* gui/gdmconfig.(c|glade): work more on server editting, now fills
out the static server edit dialog correctly
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sat Aug 18 18:17:44 2001 George Lebl <jirka@5z.com>
* daemon/gdm.[ch]: add some code for choosable servers (not
implemented yet
* daemon/misc.c: search our own displays for used numbers first
* daemon/gdm.c, daemon/server.c, daemon/slave.c: Finish implementing
choosing of flexi servers
* daemon/slave.c, daemon/verify{,-pam,-crypt,-shadow}.[ch]:
Correctly implement credential setting and some pam related
fixes
* gui/gdmconfig.(c|h|glade): Start on making configuration for
all the new stuff including the server definitions, not finished
yet.
* gui/gdmflexiserver.c: if there are multiple flexible servers,
give the user a choice
* gui/gdmflexiserver-xnest.desktop.in: only show if Xnest exists
|
|
|
|
|
|
|
|
| |
Fri Aug 10 22:56:21 2001 George Lebl <jirka@5z.com>
* gui/gdmlogin.c: use selected state for titlebar when window
focused, normal when otherwise, get rid of handle crap and the
frame to make titlebar slimer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mon Jul 09 00:14:02 2001 George Lebl <jirka@5z.com>
* Makefile.am, autogen.sh, configure.in, daemon/Makefile.am,
daemon/auth.c, daemon/gdm.c, daemon/gdm.h, daemon/misc.c,
daemon/server.c, daemon/slave.c, daemon/verify-crypt.c,
daemon/verify-pam.c, daemon/verify-shadow.c, daemon/xdmcp.c,
gui/Makefile.am, gui/gdmchooser.c, gui/gdmconfig.c, gui/gdmlogin.c,
gui/gdmphotosetup.c, gui/misc.[ch], po/POTFILES.in: Use
vicious-extensions module rather then local routines
* gui/icon-entry-hack.[ch]: remove, in vicious-extensions now
|