This probably is not the best way, however since I don't know much PHP and have had countless problems with the LDAP module I am attempting it....
This is the code I have in ASP
Dim Group
Dim User
Logonname = Trim(Replace(UCase(Request.ServerVariables("LOGON_USER")),"JRS\",""))
Sub PullUserFullname(strDomain,strUser)
Dim User
Set User = GetObject("WinNT://" & strDomain & "/" & strUser & ",user")
Response.write "<BR>" & User.Fullname
End sub
Sub PullUserHomeDirPath(strDomain,strUser)
Dim User
Set User = GetObject("WinNT://" & strDomain & "/" & strUser & ",user")
Response.write "<BR>" & User.HomeDirectory
End Sub
PullUserHomeDirPath "JRS",Logonname
PullUserFullName "JRS",Logonname
What I would like to do is this but in PHP... any pointers guys?