I have an application I am developing which is using remoting to have a
smart client connect to a remote database via IIS. There are certain
functions that we only want the user to be able to access if they are
members of a certain group on the server. When the application is deployed,
the group will be a domain group, but for our developers the group is a
local group on the development machines. To check the group membership, I
am using the HttpContext.Cur rent.User.IsInR ole(groupName) where groupname is
checked as
System.Environm ent.MachineName & "\" & groupname
and then as
<domainName> & "\" & groupname
My problem is how to get the domain name of the machine that is hosting the
remoting. In our development environment, the domain of the development
server is different from the domain the users are defined in, so we can't
use the System.Environm ent.UserDomainN ame.
Can anyone tell me how I can get the name of the domain that the remoting
host is a member of?
TIA
Ron Lounsbury 5 2057
this is inelegant and I am sure that there is a better way, but...
why not just create a remotable object that returns this information to
callers?
there should also be a way to do this with Active Directory...
Stand__Sure
Thanks for the response. That is essentially what I am trying to do,
but I haven't been able to find a way to say "what domain is the server I am
on a member of".
Ron L
"stand__sur e" <st*********@ho tmail.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. . this is inelegant and I am sure that there is a better way, but... why not just create a remotable object that returns this information to callers?
there should also be a way to do this with Active Directory...
Have you solved this? I have the same problem except that my application can
be deployed to any computer. I need to determine, at runtime, whether to use
a local group or a domain group to form the group name for IsInRole.
--
Doug Van Vreede
Doug
No, I haven't come up with anything. For the moment I am coding around it
and moving on. If you find anything, I would be very interested.
Ron L
"Doug V" <Do***@discussi ons.microsoft.c om> wrote in message
news:1B******** *************** ***********@mic rosoft.com... Have you solved this? I have the same problem except that my application can be deployed to any computer. I need to determine, at runtime, whether to use a local group or a domain group to form the group name for IsInRole. -- Doug Van Vreede
I resorted to using some Win32 code to call NetGetJoinInfor mation. That
gives me the computer's domain. I'm still trying both forms of group names
(System.Environ ment.MachineNam e & <domainName>) . I'd like a way to avoid
that.
--
Doug Van Vreede This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jach |
last post by:
How can I get the domain, username and PC network name (Win 2000 Pro & Win
XP Pro PC's) of the current logged on user (logged onto a domain and access
an intranet page, Window 2000 server running IIS) and put this automatically
in a textbox in an webpage. Can this be done with asp & VB?
I basically want to automatically populate a username field with the users
logon so the do not need to type it themselves, leading to type errors.
...
|
by: Deano |
last post by:
Hi,
I feel I have a good learning opportunity here. I have been asked to
knock up a simple db for managing lettings of rooms and halls. I'm
confident about the design but want to make it multi-user even though
it's not strictly necessary right now.
I've not much experience in this even though i've read the correct
websites that have been listed here many times, down to tips about not
using domain aggregrate functions to improve...
|
by: Wysiwyg |
last post by:
After a server created cookie is processed on the client I want it removed,
cleared, or expired in the javascript block but have been unable to do this.
If I set a cookie value in the server code behind and don't use a domain
then I can not change or remove that cookie's value on the client. If I
subsequently create the cookie again in the codebehind then I actually end
up with TWO cookies with the same name in the response. The cookie...
|
by: Peter Afonin |
last post by:
Hello,
I have a simple client-side form that is checking the domain availability on
the domain registrar's server:
<FORM action="https://www.webnames.ru/scripts/RegTimeSRS.pl" method="post">
<input type="hidden" name="thisPage" value="pispCheckDomain">
<input type="hidden" name="username" value="test">
<input type="hidden" name="password" value="test">
domain_name: <input type="text" name="domain_name"><br>
|
by: Scott M. Lyon |
last post by:
I'm having some strange problems with a VB.NET application that I support.
The application currently uses SystemInformation.UserName() and
SystemInformation.UserDomainName() to determine who is logged in, and what
network domain they are logged into.
And for our environment here (logged into a domain), it seems to work just
fine.
| |
by: Ron L |
last post by:
I have an application I am developing which is using remoting to have a
smart client connect to a remote database via IIS. There are certain
functions that we only want the user to be able to access if they are
members of a certain group on the server. When the application is deployed,
the group will be a domain group, but for our developers the group is a
local group on the development machines. To check the group membership, I
am...
|
by: Martin Robins |
last post by:
I need to access the scheduler service on a network computer in order to manipulate it remotely from .NET; I have all of the necessary code to perform the manipulation and it works - great - but I am having problems with authentication.
I have tried using LogonUser and this works fine with a domain account, however it is not possible to use this with an account that is defined only on the remote computer - it only works with local or domain...
|
by: Jim in Arizona |
last post by:
I was trying to have an email sent when the page loads but having some
trouble with it.
Our server is an IIS 6.0 with Framework 2.0. It is set to windows
authentication (not anonymous).
I don't really know what I'm doing and so far my tests haven't been so good.
Here's the code I tried:
Dim test As New System.Net.Mail.SmtpClient
|
by: kelly.pearson |
last post by:
Is this a bug? I am trying to write a cookie that can be accessed by
various .Net applications on our domain. However, whenever I add the
domain property to the cookie, no errors get thrown but the cookie
doesn't get written. I am trying this from my localhost using
vs2003, .net framework 1.1, windows xp prof. Sample code I am testing
with is below.
Public Class WebForm1
Inherits System.Web.UI.Page
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |