Perl windows user authentication




















Show Posts. Shell Programming and Scripting. PERL and Kerberos authentication. Registered User. Join Date: Apr Last edited by Don Cragun; at PM.. Join Date: Jun From the modules info, this uses the normal krb5 libraries. From their manual: Quote:. Normally, you should install your krb5. Find all posts by neutronscott. Hi All, I am currently writing script to get the details for lot of hosts from jump server. Means each and every time it will ssh to the host and get the information.

To achieve that I need to automatically accept the password from Jump server to that main hosts. We are using kerberos password Kerberos Authentication error. Hi , I am trying to authenticate my id on client server with Kerberos and receiving below error kinit rpagadala BDC.

I've configured an AIX 5. Then there is more than one way to do it. Here is a good starting point, if you need help with experimenting with connection strings. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 9 years, 10 months ago. Active 3 years, 3 months ago.

Viewed 9k times. Aks Aks 5, 12 12 gold badges 53 53 silver badges 98 98 bronze badges. What kind of a server? See also here: stackoverflow. This call will turn off the specific warning till the end of the file or the end of the enclosing block. Hence we wrapped the whole redefinition part in an anonymous block.

It is a bit more writing, but it is much safer. This way if we accidentally redefined another function later on, we'll still get the proper warning about those cases. We have turned off warning only for the specific block of our code.

It does not warn, but it is still just a monkey-patch. What about proper sub-classing? Sub-classing - in the script In the beginning of this script we switch to a new name-space we called My::Client. It also make reuse possible. We also had to add 1; at the end to make Perl happy.

We preceded that with a use lib 'lib'; to adjust INC , and we could remove the extra package main; as we are in the main package by default. Conclusion We saw a number of ways to implement this. Using credentials is the quick way, but we can also properly subclass LWP::UserAgent which provide a lot more flexibility and a potential to reuse our code.

Written by Gabor Szabo Published on Toggle navigation Perl Maven. Written by Gabor Szabo.



0コメント

  • 1000 / 1000