PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old June 14th, 2002, 04:14 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Win32 API

How can i call win32 API from PHP ?
I would like to use windows authentication (NTLM, Kerberos) on PHP, is it possible ?

Reply With Quote
  #2  
Old June 14th, 2002, 01:10 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Win32 API

Look into these functions :

w32api_deftype
w32api_init_dtype
w32api_invoke_function
w32api_register_function
w32api_set_call_method

As for authentication try something like :

header('WWW-Authenticate: NTLM',true);


you may also want to look at the LDAP functions for accessing Active Directory...


Reply With Quote
  #3  
Old June 14th, 2002, 02:09 PM
geekmug geekmug is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 8 geekmug User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to geekmug Send a message via AIM to geekmug
RE: Win32 API

I saw this question and it gave me an excuse to try out the functions mentioned above... so I found one big problem with those functions: pointers. Most of the useful library calls requires pointers for return values.. LogonUser is no exception. Creating a pointer became a simple hack, but to be able to clean up the memory I had to make a deref function to do HANDLE = *PHANDLE;

So here ya go: http://codewalkers.com/seecode/111.html


Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Win32 API


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway