|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-17 23:02 UTC] derick@php.net
[2005-01-18 20:04 UTC] ash at theleys dot cambs dot sch dot uk
[2005-01-26 22:07 UTC] ash at theleys dot cambs dot sch dot uk
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
Description: ------------ Can't iterate through list of NT Group memberships. Same code (as VBScript) works in asp page (lists group names.) Reproduce code: --------------- try { $objUser = new COM("WinNT://myDomain/aUserAccountName"); foreach ($objUser->Groups as $grp) { echo $grp->Name; } $objUser = null; } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; } Expected result: ---------------- List of groups that the account is a member of. Actual result: -------------- Caught exception: Error Member not found. But ->Groups _is_ the collection of groups... (Have looked at Bug #25759 COM Instantiation causes Script to fail silently)