[Bug libc/6685] New: Add a putpwnam()
miek at miek dot nl
sourceware-bugzilla@sourceware.org
Sat Jun 21 08:01:00 GMT 2008
glibc supports nss with all kind of read functions, like for instance
getpwnam(). These function can either read from /etc/passwd or a
NIS/LDAP backend. There is however only one write function: putpwent():
int putpwent(const struct passwd *p, FILE *stream);
which requires a file. As such you can only read from LDAP, never write
to it.
It would be nice to be able to write to ldap, with something like
putpwnam(). With this function the shadow-utils (chsh, chfn, etc.) can
also be modified so that they support writing to different backends
This will also allows for a much easier transition for people wanting to
migrate to ldap (or any other supported backend).
--
Summary: Add a putpwnam()
Product: glibc
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: miek at miek dot nl
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6685
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Glibc-bugs
mailing list