1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/source4/lib/ldb/nssldb
Matthias Dieter Wallnöfer e50c982679 LDB:NSS - make LDB "signed-safe" on counter variables
"i" needs to be unsigned on both places since it counts till a "count" variable
of a "struct ldb_result" object which itself is unsigned.

I see counting variables much better as "unsigned" since in most cases we don't
use negative values at all. We've only to be careful on binary searches and
downto counts regarding them.
2010-03-02 18:02:00 +01:00
..
ldb-grp.c Merge ldb_search() and ldb_search_exp_fmt() into a simgle function. 2008-09-23 18:17:46 -04:00
ldb-nss.c LDB:NSS - make LDB "signed-safe" on counter variables 2010-03-02 18:02:00 +01:00
ldb-nss.h r23800: LGPL is now called GNU Lesser General Public License 2007-10-10 14:59:17 -05:00
ldb-pwd.c Merge ldb_search() and ldb_search_exp_fmt() into a simgle function. 2008-09-23 18:17:46 -04:00
README.txt r19458: Some info on the "schema" 2007-10-10 14:21:35 -05:00

This test code requires a tdb that is configured for to use the asq module.
You can do that adding the following record to a tdb:

dn: @MODULES
@LIST: asq

Other modules can be used as well (like rdn_name for example)

The uidNumber 0 and the gidNumber 0 are considered invalid.

The user records should contain the followin attributes:
uid (required)			the user name
userPassword (optional)		the user password (if not present "LDB" is
				returned in the password field)
uidNumber (required)		the user uid
gidNumber (required)		the user primary gid
gecos (optional)		the GECOS
homeDirectory (required)	the home directory
loginShell (required)		the login shell
memberOf (required)		all the groups the user is member of should
				be reported here using their DNs. The
				primary group as well.

The group accounts should contain the following attributes:
cn (required)			the group name
uesrPassword (optional)		the group password (if not present "LDB" is
				returned in the password field)
gidNumber (required)		the group gid
member (optional)		the DNs of the member users, also the ones
				that have this group as primary


SSS