Snap... thanks! I'll check it out and report back!

How do I set the cookie? That's the approach the SMF people told me to work on and I hit a dead-end.

Is there any way that I can manually log in a user using PHP and the database?

I'm trying to integrate PunBB into a CMS some folks here at work developed that utilizes a single-sign-on procedure. I get the usernames and passwords from the single-sign-on sever, not PunBB. They would be identical in both systems though. But, I want to make a page so once they're logged into our custom system, I can have some PHP code that logs them into PunBB and forwards them to the forum home.

I've tried this with Simple Machines (SMF,simplemachines.org) but I haven't had any luck. Any help would be greatly appreciated!

Anyone?

Hey everyone. I was asked to see if I could come up with a forum to add to our single-sign on system that we developed. I'd love to integrate PunBB into our system. I'm new to this sort of thing, and I was given a month and a half to do it, but I don't really know where to start.

Looking at the documentation for our system, it looks like this method works by sending SOAP information, which is COMPLETELY new to me. Here's an example:

CreateAccount Function
-- SOAP Request

POST /SMDAuth/SMDAUTH.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://server/SMDAuth/CreateAccount"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CreateAccount xmlns="https://server/SMDAuth">
      <UserData>
        <LoginID>string</LoginID>
        <FirstName>string</FirstName>
        <LastName>string</LastName>
        <Email>string</Email>
        <Password>string</Password>
      </UserData>
      <AppIDd>int</AppID>
      <AuthPswd>string</AuthPswd>
    </CreateAccount>
  </soap:Body>
</soap:Envelope>

-- SOAP Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CreateAccountResponse xmlns="https://server/SMDAuth">
      <CreateAccountResult>
        <ErrCode>int</ErrCode>
        <ErrMsg>string</ErrMsg>
      </CreateAccountResult>
    </CreateAccountResponse>
  </soap:Body>
</soap:Envelope>

They included a ColdFusion example...

<CFTRY>
<CFSET #UserData#=#StructNew()#>
<CFSET UserData.LoginID=#Form.username#>
<CFSET UserData.FirstName=#ltrim(rtrim(mid(Form.fullname, find(",", Form.fullname, 1)+1, len(Form.fullname))))#>
<CFSET UserData.LastName=#ltrim(rtrim(mid(Form.fullname, 1, find(",", Form.fullname, 1)-1)))#>
<CFSET UserData.Email="#Form.email#">
<CFSET UserData.Password=#Form.password#>

<CFINVOKE Webservice="#SMDAuth_WSDL#"
        Method="CreateAccount"
        UserData="#UserData#"
        AppID="#SMDAuthh_AppID#"
        AuthPswd="#SMDAuth_AuthPswd#"
        returnVariable="addusr">

    <cfcatch type="Any">
        <cfset errorString=cfcatch.Message & " " & cfcatch.Detail>
        <cfset exception = cfcatch>
    <cfoutput><b>Error on calling SMDAuth web service (CreateAccount method):</b><br><br>#errorString#<Br><br>
    <b>Please call help desk!</b>
    </cfoutput>
    <cfabort>
    </cfcatch>
</CFTRY>

<CFIF #addusr.ErrCode# is not 0>
    <CFOUTPUT>#addusr.ErrMsg#</Cfoutput>
    <CFABORT>
</CFIF>

Where do I start??? lol... If I can't figure out how to start it within the next week or so, I'm just going to tell them I don't have enough experience and that a seasoned developer should probably do it.

BUT, I would love to learn how to do it. Maybe someone can just point me in the right direction?

Thanks in advance!