All of lore.kernel.org
 help / color / mirror / Atom feed
* Adding support to chsh for non-local shell modification
@ 2012-10-03  2:58 Cody Maloney
  2012-10-03 10:24 ` Karel Zak
  0 siblings, 1 reply; 4+ messages in thread
From: Cody Maloney @ 2012-10-03  2:58 UTC (permalink / raw)
  To: util-linux

Hi,

I would like to implement support for non-local shell changing in chsh
at the very least, and possibly support for non-local user attributes
in general for the other attribute modification tools in login-utils.
For my purposes I need LDAP support, but it would probably be better
to make it able to use an arbitrary storage backend.  Ideally an API
would already exist for this, but while one for setting authentication
tokens has evolved (pam_chauthtok) and one for reading user attributes
(Name Service Switch NSS), but none for setting them as far as I can
tell. As such, I think the best route would be just to make a new API
for this.

I thinks this could be done by adding a new configuration file and
module api. The configuration file would contain information on what
user ids to map to which name attribute changing module (and allow
users to specify only some attributes to go to specific modules). The
module api would consist of a single entry point which would take a
string indicating what attribute to change ("shell", etc.), and the
user id. The function could return any of a set of standard error
codes (permission denied, success, user unknown, etc). chsh would move
all passwd file logic outside of itself and into one of these modules,
and use dlopen/dlsym to load the desired function out of the desired
module.

Should I implement this route and send patches for review, or would
there be some other preferred route to getting the feature into
login-utils?

Thanks,
Cody

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-08 15:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-03  2:58 Adding support to chsh for non-local shell modification Cody Maloney
2012-10-03 10:24 ` Karel Zak
2012-10-07 17:08   ` Cody Maloney
2012-10-08 15:58     ` Miloslav Trmac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.