Getting the Domain in a custom provider class?

This is probably really simple, I just can't find it anywhere.

I am writing a custom provider and I need to get the current domain that the user is logged into. The reason for this is that I will be using the provider for multiple domains and I need the domain information to send the user the correct results.

I know that I use the getStringProperty(<component>, <key>, <default>)method in my provider to get the information. I just need to know what component and key I need to look for.

TIA,

Brian Orwig

[563 byte] By [708870] at [2007-11-25 4:34:20]
# 1
The domain name is explicitly stored but for each user, there is an attribute called iwtUser-role-atand the value for this role would be something like /domainname/defaultRoleYou can get this attribute parse the /domainname from the value and use it ..
Karthik_Krishnamoorthy at 2007-6-29 2:45:19 > top of Java-index,Web & Directory Servers,Portal Servers...
# 2
Once you have the com.iplanet.portalserver.session.Session object, you can use the getClientDomain() method to get the domain of the current user, and you can use the getClientID() method to get the userid they used to log in.
708796 at 2007-6-29 2:45:19 > top of Java-index,Web & Directory Servers,Portal Servers...