/    Sign up×
Community /Pin to ProfileBookmark

Accessing user’s network domain

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 ?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@chazzyJun 06.2006 — 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)
Copy linkTweet thisAlerts:
@cowardauthorJun 06.2006 — 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.
×

Success!

Help @coward spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...