Click to See Complete Forum and Search --> : Accessing user's network domain
coward
06-05-2006, 08:59 PM
I am wanting to reference the user's network domain, and their username (DOMAIN/username) but I dont have access to AD so I cant use LDAP addressing.
In .NET I can use Environment.username and Environment.userdomainname (or something along those lines). Is there anything similar in PHP?
Cheers :)
chazzy
06-05-2006, 09:39 PM
No.
But to understand better, you don't have access to AD or there is no AD to access at all? Because you don't actually need any rights to query the AD LDAP for name, but you do for groups. (at least that's how it is in most setups)
coward
06-05-2006, 09:53 PM
Well we are in a citrix environment where access to the servers is generally restricted through an RDP session or the citrix environment.
I have access to the servers as a domain admin (however I dont know the address of AD, or which server it is on).
It is really only for local testing, as once I move the app to the hosted servers I will have free reign to access everything I need. So it's not a big issue, but it would be nice to not have to duplicate the users into my own table :)
I was looking at implementing group rights in my app too, but it's not that important so I figured leaving that out and having restricted user access on a per-user basis was ok.