I'm afraid I don't quite follow what you are asking-as I see the process, you would:

  1. Retrieve user's credentials (from prompts, UI, or command line)
  2. Log into site1
  3. If a change is made, then for each other site,
    1. Log into siteN
    2. Make corresponding change
That being the case, you would have the credentials to be able to log into the other servers (as you indicated the credentials would be the same).

Does that help any?

Update: 2013-12-05
Based on Re^2: Reuse the LDAP session ?, I was not advocating permanent storage of the credentials, only keeping them in memory until the steps could be completed. Would you not be able to do that, or is that a bad idea?


In reply to Re: Reuse the LDAP session ? by atcroft
in thread Reuse the LDAP session ? by arunbhargav

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.