PHP Forms-Based Authentication on Windows using Local User Accounts -
i'm running php, apache, , windows. not have domain setup, website's forms-based authentication use local user accounts database built in windows (i think it's called sam).
i know if active directory setup, can use php ldap module connect , authenticate in script, without ad there no ldap. equivalent standalone machines?
i haven't found simple solution either. there examples using createobject , winnt adsi provider. bump user authentication issues active directory service interfaces winnt provider. i'm not 100% sure guess wsh/network connect approach has same problem.
according how validate user credentials on microsoft operating systems should use logonuser or sspi.
says
therefore, if win9x/2000 support isn't needed, write extension exposes logonuser php.logonuser win32 api not require tcb privilege in microsoft windows server 2003, however, downlevel compatibility, still best approach.on windows xp, no longer required process have se_tcb_name privilege in order call logonuser. therefore, simplest method validate user's credentials on windows xp, call logonuser api.
might interested in user authentication nt accounts. uses w32api extension, , needs support dll ...i'd rather write small logonuser-extension ;-)
if that's not feasible i'd fastcgi module iis , how stable , let iis handle authentication.
edit:
i've tried utilize system.security.principal.windowsidentity , php's com/.net extension. dotnet constructor doesn't seem allow passing parameters objects constructor , "experiment" assembly (and createinstance()) gettype() has failed "unknown zval" error.
Comments
Post a Comment