diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-22 09:19:43 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-22 12:54:52 -0500 |
commit | b81f453b8ade026f9c19bfd557a986cbcf0c9c8c (patch) | |
tree | eed75280be4db28104748ae4c748dc0b4eaeeab0 /src/providers | |
parent | 446dbddae224cb68422825445b3cbdeb6606aa81 (diff) | |
download | sssd-b81f453b8ade026f9c19bfd557a986cbcf0c9c8c.tar.gz sssd-b81f453b8ade026f9c19bfd557a986cbcf0c9c8c.tar.xz sssd-b81f453b8ade026f9c19bfd557a986cbcf0c9c8c.zip |
Remove unnecessary "domain" parameter from DP registration
This was a holdover from when the DP and the providers were unique
processes. The NSS and PAM registrations do not need to send the
domain, as it is not ambiguous which one they are talking to.
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/data_provider.h | 2 | ||||
-rw-r--r-- | src/providers/data_provider_be.c | 2 | ||||
-rw-r--r-- | src/providers/dp_auth_util.c | 7 |
3 files changed, 4 insertions, 7 deletions
diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h index 661bd986a..cbb4ebb44 100644 --- a/src/providers/data_provider.h +++ b/src/providers/data_provider.h @@ -198,7 +198,7 @@ bool dp_unpack_pam_response(DBusMessage *msg, struct pam_data *pd, DBusError *dbus_error); int dp_common_send_id(struct sbus_connection *conn, uint16_t version, - const char *name, const char *domain); + const char *name); /* from dp_sbus.c */ int dp_get_sbus_address(TALLOC_CTX *mem_ctx, diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c index 93cae0702..c384d015c 100644 --- a/src/providers/data_provider_be.c +++ b/src/providers/data_provider_be.c @@ -654,7 +654,6 @@ static int client_registration(DBusMessage *message, DBusError dbus_error; dbus_uint16_t cli_ver; char *cli_name; - char *cli_domain; dbus_bool_t dbret; void *data; @@ -674,7 +673,6 @@ static int client_registration(DBusMessage *message, dbret = dbus_message_get_args(message, &dbus_error, DBUS_TYPE_UINT16, &cli_ver, DBUS_TYPE_STRING, &cli_name, - DBUS_TYPE_STRING, &cli_domain, DBUS_TYPE_INVALID); if (!dbret) { DEBUG(1, ("Failed to parse message, killing connection\n")); diff --git a/src/providers/dp_auth_util.c b/src/providers/dp_auth_util.c index 16fb28c74..f4e68eafd 100644 --- a/src/providers/dp_auth_util.c +++ b/src/providers/dp_auth_util.c @@ -354,7 +354,7 @@ done: } int dp_common_send_id(struct sbus_connection *conn, uint16_t version, - const char *name, const char *domain) + const char *name) { DBusPendingCall *pending_reply; DBusConnection *dbus_conn; @@ -373,13 +373,12 @@ int dp_common_send_id(struct sbus_connection *conn, uint16_t version, return ENOMEM; } - DEBUG(4, ("Sending ID to DP: (%d,%s,%s)\n", - version, name, domain)); + DEBUG(4, ("Sending ID to DP: (%d,%s)\n", + version, name)); ret = dbus_message_append_args(msg, DBUS_TYPE_UINT16, &version, DBUS_TYPE_STRING, &name, - DBUS_TYPE_STRING, &domain, DBUS_TYPE_INVALID); if (!ret) { DEBUG(1, ("Failed to build message\n")); |