Security Configuration for publishing services to UDDI using the UDDI SDK

Source: Internet
Author: User

In the release operation of the uddi sdk, you must first set the address and authentication method, which are related to the security settings of the virtual directory of the service and the configuration of the UDDI role.

The security configuration of the UDDI service is set to window Integration authentication and UDDI publisher authentication.

Publish. authenticationmode has three types: None, uddiauthentication and windowauthentication.

When windowauthentication is used, the current account is used as the credential. When uddiauthentication is used, the user name and password are used to log in.

 

1.

If the security configuration of the UDDI virtual server is window integration verification or domain or basic verification, you need to enter the user name and password when using IE to open the server.

After logging in, you can query and publish (publishing may not be permitted based on the role setting of UDDI). It can add or modify services of the current user.

However, you cannot set user creden. when using the uddi sdk. IfProgramThe running user is not in the service group and cannot set simulated creden.

Concept!

Inquire. url = configurationmanager. receivettings ["uddi_inquireurl"];
Inquire. authenticationmode = authenticationmode. windowsauthentication;
Publish. url = configurationmanager. deleettings ["uddi_publishurl"];
Publish. authenticationmode = authenticationmode. uddiauthentication;

Publish. User = "user ";
Publish. Password = "password123! ";

// Publish. authenticationmode = authenticationmode. windowsauthentication;

 

2.

If the security configuration of the UDDI virtual server is anonymous access, it can be queried when it is opened with IE, but cannot be published because it is anonymous by default and does not enter the username and password step.

After logging in, you can query and cannot add or modify services.

However, if you use the uddi sdk uddiauthentication, you can use the set username and password to log on and perform query, release, and other operations.

 

Very busy ~! @! $ # % $ @ % # @ % T

The following is a friend who posted a post for help. As I said, he finally "found" that he can only do this:

 

---------------------- Ah, I am a split line --------------------------

1.

Hi,

I am using UDDI sdks 2.0. In my code, I am trying to publish as well
Search for businesses.

1. While publishing, I do
Publish. authenticationmode = authenticationmode. uddiauthentication;
Also give user credentials (machine administartor) here.

2. While searching I do
Inquire. authenticationmode = authenticationmode. windowsauthentication;

I try to browse UDDI virtual directory, localhost/uddiit only allows me to read from UDDI repository and links for publishing are not visible. I checked the virtual dir "UDDI" and it is set to allow anonymous access. if I change it
Integrated Windows authentication, then I am able to browse to virtual
Dir and I can add/update/delete from UDDI rep. But in this case my
Code does not work.

How can I get both the Code and normal browsing to work at the same time.

Thanks

 

2.

Found the problem.

You need to use windowsauthentication for both publishing and searching. in case you use UDDI authentication for publishing, then you need set "enable Anonymous Access" on UDDI virtual directory. and then while reading if u Windows authentication, then it wont work as u have set anonymous access on. so use windowsauthenticationmode in code for both reading anfd Publishing. ensure that UDDI Vir DIR is set for "Windows Authentication ".

 

----------------------------- Ah, I am a split line ----------------------

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.