Debian Codegraph @

Doc/info.txt

raw
1
2 + Library for Unix users and groups in Rust
3 https://github.com/ogham/rust-users
4 https://gitlab.com/core-utils/users_native/blob/master/src/lib.rs
5
6 * * *
7
8 http://www.manpages.info/freebsd/group.5.html
9 http://www.manpages.info/freebsd/passwd.5.html
10
11
12 FreeBSD: /etc/login.conf
13
14 passwd_format
15
16 /etc/passwd
17 /etc/master.passwd
18
19 * * *
20
21 Command getent:
22
23 It retrieves the contents for passwd, shadow, gshadow and a bunch more and
24 accesses LDAP and others when present.
25
26 If the user doesn't have the required privileges, it returns nothing.
27
28 It always uses the "right" information source (say you do use LDAP - it'll
29 report the passwd data from LDAP instead of /etc/passwd).
30
31
32 this really needs to be done via the system libraries to be complete. It looks
33 to cover the basics fairly well (you didn't even forget about gshadow like most
34 people), but I wouldn't try to go much further down this path (e.g. don't parse
35 nsswitch.conf yourself, and try to resolve usernames elsewhere).
36
37 Take a look at python-libuser to see what's required for a more complete
38 interface. https://fedorahosted.org/libuser/
39
40 It's a crufty old system, and you really have to go through the standard C
41 libraries to make sure your library follows the same rules as everything else
42 that resolves user and group information.
43
44 * * *
45 See command "chage -l [user]"
46
47 * * *
48 Add tests for functions related to changeType in file shadow.go
49
50 * * *
51
52 http://nerds-central.blogspot.ca/2007/09/how-to-get-sid-for-group-or-user-by.html
53
54 http://msdn.microsoft.com/en-us/library/windows/desktop/aa379159%28v=vs.85%29.aspx
55 http://msdn.microsoft.com/en-us/library/windows/desktop/ms721798%28v=vs.85%29.aspx
56 http://msdn.microsoft.com/en-us/library/windows/desktop/ms721799%28v=vs.85%29.aspx
57