This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Testers needed: New passwd/group handling in Cygwin


On Feb 18 19:18, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
> This will not work (verified!) for code run from under an unmanaged
> Windows service account (NT_Service\...), once the machine changes its
> password per security policy (the access then becomes anonymous and will
> result in only first 100 entries returned):
> 
> winsup\cygwin\passwd.cc:
> 	  else if (group)
> 	    ret = NetGroupEnum (NULL, 2, (PBYTE *) &buf, MAX_PREFERRED_LENGTH,
> 				&max, &total, &resume);
> 	  else
> 	    ret = NetUserEnum (NULL, 20, FILTER_NORMAL_ACCOUNT, (PBYTE *) &buf,
> 			       MAX_PREFERRED_LENGTH, &max, &total,
> 			       (PDWORD) &resume);
> 
> This is what I was trying to point out, in my earlier message...

These functions are not called for domain accounts, only for local
accounts.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpsZpWlTOAxX.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]