What is the easiest way to create admin accounts on multiple PANs for LDAP auth?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

What is the easiest way to create admin accounts on multiple PANs for LDAP auth?

Not applicable

I am trying to set up LDAP auth on the PANs and they need local accounts to reference. I have multiple fw's and curious if there is an easier less manual way of creating these accounts.

1 accepted solution

Accepted Solutions

L3 Networker

Using a panxapi program from either PAN-perl or PAN-python (on

DevCenter) you can clone parts of a config from one device to another.

In this example I clone a mgt-config user.  See doc/panxapi.html from

PAN-python. There are a lot of options, and you'll need to invest some

time to understand various config XPaths.

$ panxapi.py -t pa-200-a -sxr "/config/mgt-config/users/entry[@name='ksteves']" >X.xml

show: success

$ panxapi.py -t pa-200-b -S X.xml "/config/mgt-config/users"

set: success

$ panxapi.py -t pa-200-b -Xjro 'show jobs id "397"'

op: success

{

  "job": {

    "details": {

      "line": "Configuration committed successfully"

    },

    "id": "397",

    "progress": "12:24:18",

    "result": "OK",

    "status": "FIN",

    "stoppable": false,

    "tenq": "2013/04/27 12:23:29",

    "tfin": "12:24:18",

    "type": "Commit",

    "user": "admin",

    "warnings": null

  }

}

View solution in original post

1 REPLY 1

L3 Networker

Using a panxapi program from either PAN-perl or PAN-python (on

DevCenter) you can clone parts of a config from one device to another.

In this example I clone a mgt-config user.  See doc/panxapi.html from

PAN-python. There are a lot of options, and you'll need to invest some

time to understand various config XPaths.

$ panxapi.py -t pa-200-a -sxr "/config/mgt-config/users/entry[@name='ksteves']" >X.xml

show: success

$ panxapi.py -t pa-200-b -S X.xml "/config/mgt-config/users"

set: success

$ panxapi.py -t pa-200-b -Xjro 'show jobs id "397"'

op: success

{

  "job": {

    "details": {

      "line": "Configuration committed successfully"

    },

    "id": "397",

    "progress": "12:24:18",

    "result": "OK",

    "status": "FIN",

    "stoppable": false,

    "tenq": "2013/04/27 12:23:29",

    "tfin": "12:24:18",

    "type": "Commit",

    "user": "admin",

    "warnings": null

  }

}

  • 1 accepted solution
  • 2035 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!