s4-dsdb: Changed filter to find the account of a user by samAccountName
authorNadezhda Ivanova <nivanova@samba.org>
Tue, 23 Nov 2010 19:54:09 +0000 (21:54 +0200)
committerNadezhda Ivanova <nivanova@samba.org>
Tue, 23 Nov 2010 20:02:03 +0000 (21:02 +0100)
commite95a350682f965780841712527e8e0cac282218d
tree04a8d2e413e6cc0791902eb337f6a33b837908c9
parent5e0130c51e7b82ed82f08d5089cf7cbdbc6b3142
s4-dsdb: Changed filter to find the account of a user by samAccountName

In newuser, a filter by dn was given to setpassword to find the account whose password is to be reset.
It appears however that if given filter of type (dn=CN=smth) Windows fails to return the entry, and the
tests that use newuser fail against it. Changed to use samAccountName instead.
source4/scripting/python/samba/samdb.py