summaryrefslogtreecommitdiff
path: root/source3/torture/pdbtest.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2007-12-26 17:58:55 +0100
committerVolker Lendecke <vl@samba.org>2007-12-26 18:57:15 +0100
commite70c97ef85b309d6e005c07e16a003725d21ffc8 (patch)
tree5242d8ac652b48c0e0b49638837860ba9f6cc16c /source3/torture/pdbtest.c
parentc90f731ef21d682f808cf3da0f24510a2eaea4ff (diff)
downloadsamba-e70c97ef85b309d6e005c07e16a003725d21ffc8.tar.gz
samba-e70c97ef85b309d6e005c07e16a003725d21ffc8.tar.bz2
samba-e70c97ef85b309d6e005c07e16a003725d21ffc8.zip
Remove the sampwent interface
(This used to be commit 9e80b969fb40766de2c9b1a05d16bf4d4c6e46f7)
Diffstat (limited to 'source3/torture/pdbtest.c')
-rw-r--r--source3/torture/pdbtest.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/source3/torture/pdbtest.c b/source3/torture/pdbtest.c
index 77666bb664..ab7edde85d 100644
--- a/source3/torture/pdbtest.c
+++ b/source3/torture/pdbtest.c
@@ -364,24 +364,6 @@ int main(int argc, char **argv)
get_friendly_nt_error_msg(rv));
}
- pdb->setsampwent(pdb, False, 0);
- while (NT_STATUS_IS_OK(pdb->getsampwent(pdb, out))) {
- if (pdb_get_username(out) == NULL) {
- fprintf(stderr, "Got bad username through getsampwent()\n");
- error = True;
- break;
- }
- if (NT_STATUS_IS_ERR(pdb->getsampwnam(pdb, in, pdb_get_username(out)))) {
- fprintf(stderr, "Error getting samu through getsampwnam() of an account we got through getsampwent!\n");
- error = True;
- continue;
- }
- if (!samu_correct(out, in)) {
- printf("Record gotten through getsampwnam() differs from same record through getsampwent()\n");
- }
- }
- pdb->endsampwent(pdb);
-
TALLOC_FREE(ctx);
if (error) {