1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00
Stefan Metzmacher c046f2e7a3 r19720: - don't pass a pointer reference to ldb_search_default_callback()
as it's ugly when it free's the callers memory on failure!

- only steal the controls on a LDB_REPLY_EXTENDED, LDB_REPLY_DONE
  and ignore them on LDB_REPLY_ENTRY, LDB_REPLY_REFERRAL as we currently
  have not way to return them in a ldb_result (we should fix this!)

metze
(This used to be commit 47da62b15abf48f97ce6fc8dc4627792728349ae)
2007-10-10 14:28:13 -05:00
..
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