"Saqib Haleem" <[email protected]> wrote: > >I want to import nodes in bulk to packetfence for pre-registration. I >already have list of mac address of all the authorized computers.I want >to import those mac address with person identifiers (Pids) instead of >default pid 1, so that >i should have record of mac address with its person identifier.
I am far from the PF expert, but will ask if the PID you're trying to import with the node already exists in the person table? In all of my testing to date I have not found a way to create/edit a node's PID unless the target PID is already in the person table. The list archives also point to several others who have found node creates not happening as expected due to missing PID entries. >Is there any method available to import persons record from active >directory. I take it that getting every single person to login to PF to create their person record defeats the purpose of pre-registering the nodes? :-) Making PF's captive portal authenticate against AD is possible, and it creates the base person PID record when they logon for the first time. Annoyingly, this process does not populate names or any of the other AD fields in PF's person table that I have seen. :-( You may have to script something with: /usr/local/pf/bin/pfcmd person add [pid] to populate the person table from the PID column of your CSV file as the first step, and then script the node addition with a second call to pfcmd to create the node. It really isn't more than a few lines of BASH shell script to do this from the command line, if somebody else doesn't have a cleaner solution... -Arthur ------------------------------------------------------------------------- Arthur Emerson III Email: [email protected] Network Administrator InterNIC: AE81 Mount Saint Mary College MaBell: (845) 561-0800 Ext. 3109 330 Powell Ave. Fax: (845) 562-6762 Newburgh, NY 12550 SneakerNet: Aquinas Hall Room 11 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan _______________________________________________ PacketFence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
