cancel
Showing results for 
Search instead for 
Did you mean: 

authschemes.xml for integrated Windows authentication in EP 6.0 SP7

gregorw
Active Contributor
0 Kudos

Hello,

today I tried to activate integrated Windows authentication for our EP 6.0 SP7 on SAP Web AS 6.40. First I've installed and tested the IisProxy. The IisProxy is running fine, and I can access the Portal directly through the IIS Server on Port 80. Then I've changed the Authentication Method of the IIS from anonymous access to Integrated Windows authentication. I've adapted the authschemes.xml to this according to the SAP EP 6.0 SP2 Security Guide:

[/code]

When I try then to login to the Portal I get this Error Message:

Unknown message (ID = Ungültige Nulleingabe: Name)

In the the security.log I see the message "No user name provided.".

Does anyone have sucessfull configured integrated Windows authentication in EP 6.0?

Regards

Gregor

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

David,

I am facing similar problem as you described. When I use URL through IIS Proxy 1.6,I getting Windows logon screen for user id and password. Please update if you have find solution to resolve this issue.

Former Member
0 Kudos

Read all the posts in the thread - the answer is to confirm that IISProxy is sending the headers correctly (trace your browser session and the communication between IISProxy and J2EE) and you can follow the help directly to implement this - I've validated the help myself and it works perfectly.

http://help.sap.com/saphelp_nw04/helpdata/en/a4/385bef3bd14241b9c4f36bd779537d/frameset.htm

Nick

joseph_schaar
Discoverer
0 Kudos

The authschemes.xml file on EP 6.0 SP7 should not be modified directly for the configuration to support Windows Authentication on NW EP on WAS 6.40.

The help.sap.com details the steps necessary to accomplish this configuration. You have to use the Visual Admin tool to configure the use of a Header Variable logon module and specify the parameters as indicated in the help guide.

I have used this procedure to setup authentication to NW EP SP10 for both NTLM (Windows Authentication) as well as SiteMinder and this process works well.

Former Member
0 Kudos

Does this functionality work with Exchange/2000, SAP EP 6.0 SP2 (running on UNIX), IIS/ISAPI on W2K or Do I need to upgrade to Exchange/2003 and EP 6.0 SP07? Can I get UNIX side configuration file for WebAS to re-direct to IIS/ISAPI filter?

Our environment:

Portal Platform: SAP EP 6.0 SP2 on SUN Solaris/Oracle 9i

UM Configuration: Read Only Microsoft ADS + Database

URL: http://sapdevx.sony.ca:50200/irj correctly works with AD username/password but we want to take it a step forward with ISAPI so that user's initial Windows/AD login can be used.

Email: Naren_Deo@sony.ca

Message was edited by: Naren Deo

Former Member
0 Kudos

I configured my system exactly as described by Gregor in his weblog.

When I access my portal, I get the "Enter Network Password" prompt instead of automatically logging me into the portal. If I provide my windows userid and pwd, then, it logs me in.

Is this how it is supposed to work? If not can you give me pointers to fix the problem?

Thanks

Sriram

gregorw
Active Contributor
0 Kudos

Hello Sriram,

I continue our discussion from the Weblog here. Are the Clients in the same Windows domain as the Server where the IIS Proxy is running?

Regards

Gregor

Former Member
0 Kudos

Gregor, I hope that you can shed some light on me too.

I too have looked at you web log and have found it most informing but, it is not helping me with my situation.

You solution is for a portal to be with one domain and on an intranet, correct?

My portal does not work on an intranet. Users come in on port 80 from the internet. IIS 6.0 and the Proxy are set up to tall request on 80 and point them too 50000/irj/default.htm and default.htm takes them to the portal logon sreen. When I attemp to log on, it bounces me back to the logon screen. If I access the portal from port 50000/irj/portal I can log in fine.

I am using basic authentication. If a alter my authschemes.xml to put the default to basic authentication I no longer get a logon screen but a windows pop up logon prompt. So I leave it at uidpwlogon.

IIS is taking me to the same logon screen as going right into WAS. I can not find what is going wrong. OSS is in but no responce yet.

I have two portats running ep6sp2. I can find lots of docs for them but, SAP has really let me down on NW04 IMO.

Former Member
0 Kudos

Hi Gregor:

The client is in the same domain as the server. I found additional problems - If I try to access the portal from the server, I get the "Enter Network password" prompt. If I enter the windows uid and pwd, I get into the portal. But if I login from the client machine from the same domain, I get the "Enter Network Password" prompt and when the uid and pwd for that client machine is entered, it takes me to the portal logon screen. However, if I access the portal logon screen using the 50000/irj I can login from anywhere.

Appreciate your help.

Thanks

Sriram

Former Member
0 Kudos

Gee, Sriram

This is starting to sound a little like my problem. If you access the portal via port 50000/irj you are going directly into WAS.

If you just log in via port 80 you get bounced back to a portal login prompt.

I have an ongoing rant posted here in sdn about this, and I just filed an OSS on it. If you look in your portal logging in at port 50000/irj you will see that all of your LDAP setting are there. If you log into the configtool you will see the same infomation in the UME. If you go to the visual admin tool, the LDAP information is not found. All that is there is the default setting of annonymous and j2ee-guest. Check out your server log and see if you have the same j2ee-guest user being bounced out.

Former Member
0 Kudos

David: I looked at the server.log and the security.log files. When I login from the server itself, I get the "Enter Network Password" prompt but am able to login into the portal; but when I login from the client I get the "Enter Network Password" prompt but cannot login into the portal.

In the first case, I see a log in the server.log and security.log. In the second case when I try to login from the client machine, I do not see any log in the server.log file. I see the following line in the security.log file. Incidentally, even in the first case, the log in the security.log file was similar.

/System/Security/Usermanagement#sap.com/irj#com.sap.security.core.umap#Guest#2#####SAPEngine_Application_Thread[impl:3]_38

The number 38 that you see at the end was 2 in the first case.

Thanks

Sriram

Former Member
0 Kudos

The two error lines are different with me. Here is a long paste of them.

#1.5#001185D4FC80001400004D88000014200003F0530D31DF9C#1108664424495#/System/Server#sap.com/irj#com.sap.engine.services.jndi#j2ee_guest#15#####Thread[Thread-40,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#com.sap.engine.services.jndi#Plain###Path to object does not exist at jmsfactory, the whole lookup name is webContainer/applications/sap.com/irj/irj/jmsfactory/default/queueconnectionfactory.#

Then the next line.

#1.5#001185D4FC80001400004D89000014200003F0530D31E0D1#1108664424495#/System/Server#sap.com/irj#com.sap.engine.services.jndi#j2ee_guest#15#####Thread[Thread-40,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#com.sap.engine.services.jndi#Plain###Path to object does not exist at jmsfactory, the whole lookup name is jmsfactory/default/QueueConnectionFactory.#

I have no idea on what the jmsfactory is or why it is using j2ee-guest to log in when I am on the client using the proxy. I have an OSS in on this. Nothing back yet. I have been browsing SDN and I know that we are not the only ones with this problem.

Official documentation from SAP on how to do this is poor at best in my opinion. At least you could find your way through with was6.20.

Former Member
0 Kudos

Apparently Gregor has it working. Gregor - any ideas? David - if you get a reply or resolve the problem please update me in this thread.

Thanks

Sriram

gregorw
Active Contributor
0 Kudos

Hello Sriram,

unfortenately not. Please give OSS a chance :-).

Regards

Gregor

Former Member
0 Kudos

Ok troops, looks like we are going to write up another blog on this one.

Again I have narrowed down some suspects. If we log into the server direct http://portal.evil.arg:50000/irj/portal we can all get in and see our LDAP information and the rest of our portal as if nothing is wrong.

If we log in using our IIS proxy http://please.work.now we get a log on sreen but we can not log on, we just get another log on screen.

What is the difference? We are both going the same place. Ah, but there is a difference. If the authscheme.xml is left alone we can log on using the port 50000 address. The default in the uidpwlogon. We need basic authentication to work if we are using the proxy. If we change it to "basicauthentication" it causes more problems of an addition windows logon that has no user name or password associated with it.

I am starting to think that we need to make a custom logon module, maybe one that ties in with a new UME. We know that uidpwlogon is not going to work in the authschemes.xml and they took away ntlmuidpw from the old engine. We have to tell it to go to the LDAP but, I don't know how to do it. (yet)

There has got to be a way to alter the UME that is there now.

gregorw
Active Contributor
0 Kudos

Hello David,

have you and the others read rearly all two parts of my Weblog:

and

Regards

Gregor

Former Member
0 Kudos

Hi Gregor,

I was following your instructions but I'm confused when you say in your second weblog "Please do only continue if you have read the documentation and your check returns the same as in the documentation." What documentation are you referring to ?

Also I followed your instructions and I get the same error as David. When I try to access the portal thru IIS I can't login I keep getting the login screen.

Former Member
0 Kudos

Morning Gregor,

Yes, I have read your blog and I thank you for your time.

However, I have the same question as Malik, what documentation are you referring to? SAP far too often refers to documents or software that has not been released or has not been made public knowledge.

Your blog takes into case if you are on an Intranet doing Windows Authentication and passing the the user ID that has already been authenticated to the Portal.

Our problem is that we are not on an Intranet for our requierment. We are going via the Internet and Headers are not the solution. In WAS 6.20 logon is handled by ntlmuidpw and the logon module is com.sap.security.core.ligon.imp.windows. These items were standard in WAS 6.20. Do we now have to recreate them in 6.40? Everything points to that module question and authentication. The options shipped with SAP do not work with our senario.

At this point I am tring to find information about re creating what I did in 6.20.

Working with second level OSS now, attemping to get log files to them today.

Former Member
0 Kudos

I made some progress but am not sure if the approach is correct.

In the authschemes.xml I made the foll: change

<authscheme-refs>

<authscheme-ref name="default">

<authscheme>header</authscheme>

</authscheme-ref>

...

After I made this change, the clients are also able to access the portal. However, when I login from the server or from the client machine, I still get the "Enter Network Pasword" prompt.

Once I am in the portal, most of the pages do not load - I get a javascript error. When I grab the url of the page and open a new window, I login and I see that page without any errors. Of course, when I try to navigate I get the same javascript error ('undefined' is null or not an object).

Here is my IisProxy.xml - please let me know if there is anything wrong:

<?xml version="1.0" encoding="utf-8" ?>

<!DOCTYPE ISAPI-config[

<!ELEMENT ISAPI-config ( filter, extension, ( mapping | config )* )>

<!ATTLIST ISAPI-config

version CDATA #REQUIRED

>

<!ELEMENT filter (log-path?)>

<!ATTLIST filter

name CDATA #IMPLIED

log-level CDATA "1"

log-flags CDATA "0"

debug-flags CDATA "0"

priority ( high | medium | low ) "high"

extension-url CDATA "/scripts/IisProxy.dll"

authentication ( skip | normal | forward ) "forward"

remote-address ( skip | forward ) "forward"

>

<!ELEMENT extension (

keystore-dir?,

log-path?,

data-path?,

trace-path? )>

<!ATTLIST extension

name CDATA #IMPLIED

log-level CDATA "1"

log-flags CDATA "0"

debug-flags CDATA "0"

access ( filter | direct | both ) "filter"

>

<!ELEMENT keystore-dir (#PCDATA)>

<!ELEMENT log-path (#PCDATA)>

<!ELEMENT data-path (#PCDATA)>

<!ELEMENT trace-path (#PCDATA)>

<!ELEMENT mapping (

source+,

target,

compress-types*,

protocol-header?,

certificate-header?,

cert-chain-header?,

cipher-header?,

keysize-header?,

keystore-path?,

log-path?,

data-path? )>

<!ATTLIST mapping

name CDATA #IMPLIED

log-level CDATA "1"

log-flags CDATA "0"

debug-flags CDATA "0"

keep-alive ( true | false ) "true"

use-continue ( true | false ) "true"

close-socket ( true | false ) "true"

close-socket-delay CDATA "1000"

thread-count CDATA "100"

max-socket-age CDATA "37"

>

<!ELEMENT source (protocol, host?, port?, prefix, new-prefix?)>

<!ATTLIST source

access ( filter | direct | both ) "filter"

>

<!ELEMENT protocol (#PCDATA)>

<!ELEMENT host (#PCDATA)>

<!ELEMENT port (#PCDATA)>

<!ELEMENT prefix (#PCDATA)>

<!ELEMENT new-prefix (#PCDATA)>

<!ELEMENT target (protocol, host, port)>

<!ELEMENT compress-types (#PCDATA)>

<!ATTLIST compress-types

min-size CDATA "1024"

>

<!ELEMENT protocol-header (#PCDATA)>

<!ELEMENT certificate-header (#PCDATA)>

<!ELEMENT cert-chain-header (#PCDATA)>

<!ELEMENT cipher-header (#PCDATA)>

<!ELEMENT keysize-header (#PCDATA)>

<!ELEMENT keystore-path (#PCDATA)>

<!ELEMENT config ( source+ )>

]>

<ISAPI-config version="1.6">

<filter name="IisProxy filter" authentication="forward" />

<extension name="IisProxy extension" />

<mapping name="IisProxy samples" log-level="0">

<source>

<protocol>http</protocol>

<prefix>/irj/</prefix>

</source>

<source>

<protocol>http</protocol>

<prefix>/irj</prefix>

<new-prefix>/irj/</new-prefix>

</source>

<source>

<protocol>http</protocol>

<prefix>/portal/</prefix>

<new-prefix>/irj/</new-prefix>

</source>

<source>

<protocol>http</protocol>

<prefix>/logon/</prefix>

</source>

<target>

<protocol>http</protocol>

<host>172.24.171.2</host>

<port>50000</port>

</target>

<compress-types>text/html, text/plain</compress-types>

</mapping>

<config>

<source>

<protocol>http</protocol>

<host>172.24.171.2</host>

<prefix>/IisProxy</prefix>

</source>

<source>

<protocol>https</protocol>

<host>172.24.171.2</host>

<prefix>/IisProxy</prefix>

</source>

</config>

</ISAPI-config>

David: Check to see if your "scripts" directory is a virtual directory or not. If it is not, then you will be sent to the portal logon screen.

Former Member
0 Kudos

Look at this one:

At the bottom with your config lines:

<config>

<source>

<protocol>http</protocol>

<host>iisproxy</host>

<prefix>/irj/</prefix>

</source>

<source>

<protocol>https</protocol>

<host>iisproxy</host>

<prefix>/irj</prefix>

</source>

</config>

Try that.

>>>you said

David: Check to see if your "scripts" directory is a virtual directory or not. If it is not, then you will be sent to the portal logon screen.

I am not sure what you are getting at here. I has to be a virtual directory. Are you saying it is not supposed to be one now, it that different in 6.40?

Former Member
0 Kudos

It has to be a virtual directory. When I was playing around, I used the scripts directory that was not a virtual directory and I was sent to the logon screen. So, I thought maybe your scripts directory was not a virtual directory.

Bottom line, it has to be a virtual directory. Sorry for the confusion.

Former Member
0 Kudos

David: I changed the config as you suggested, but, I still get the javascript error ('undefined' is null or not an object)

Former Member
0 Kudos

Try to install IisProxy module 1.7 and higher (as mention in the SAP windows and header authentication doc). Increase the logging level so that you can see more detail information.

Server>services>Log Configurator

Good Luck,

JV

Former Member
0 Kudos

Seems like the IISproxy doesn't send the username from the IIS authentication.

Could you post you iisproxy.xml file ?

In one of the first elements you should have an attribute authentication="forward" (or something like this, can't recall it from memory) which means the the username is sent as a HTTP header attribute to the portal

gregorw
Active Contributor
0 Kudos

Hello Dagfinn,

the parameter authentication="forward" is in our iisproxy.xml as described in SAP Note No. 706968:

<filter name="IisProxy filter" authentication="forward" />

Regards

Gregor

Former Member
0 Kudos

Not having seen SP7 code, I would try to decompile the WindowsLoginModule class (and perhaps compare it with an SP2 patch4 version)

gregorw
Active Contributor
0 Kudos

Hello Dagfinn,

in which File can I find the Class WindowsLoginModule? I've searched for WindowsLoginModule in the \usr\sap directory but had no results.

Regards

Gregor

Former Member
0 Kudos

On SP2 it is in I:\usr\sap\EPP1\j2ee\j2ee_01\cluster\server\additional-lib\com\sap\security\api\com.sap.security.core.jar

gregorw
Active Contributor
0 Kudos

Hello,

today I've received a response to my OSS message. For the EP 6.0 >= SP3 the configuration has changed. The documentation can be found at http://service.sap.com/security > Media Library > Technical Documentation > 'Using Header Variables and Integrated Windows'.

Regards

Gregor

Former Member
0 Kudos

Hello,

I've tried to set up the integrated windows authentication with the iisproxy module v1.6. But with activated integrated windows authentication on the iis it doesn't work. I've always have to enter my ID and password on the portal page again. If I pass the ID with basic authentication then it works fine...

Please help!

Regards

Joerg Loechner

gregorw
Active Contributor
0 Kudos

Hello Jörg,

have you done your configuration as described in the documentation I've suggested? We have a running integrated Windows authentication with IisProxy Module V 1.6. Because I can't find the suggested 1.7 Version anywhere.

Regards

Gregor

Former Member
0 Kudos

Hello,

thank you all for your feedback. I've followed every step of the documentation but I can't locate the problem. I think the IisProxy module doesn't forward the user ID (the IIS and the Portal are both running on the same machine). Does anyone knows where to get the new version of the IisProxy module (1.7)?

Thanks in advance...

Jörg

gregorw
Active Contributor
0 Kudos

Hello Jörg,

I have a OSS message open where I ask SAP the question where to get Version 1.7. Hopefully tomorrow I will publish a weblog with a description of our configuration. Stay tuned.

Regards

Gregor

gregorw
Active Contributor
0 Kudos

Hi Joerg,

the Weblog is now published at https://weblogs.sdn.sap.com/pub/wlg/920. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] Tomorow I will post part two.

Regards

Gregor