Cisco Wireless: Cisco WLC Customized Webauth files

Posted on Updated on


Spent the better part of the day trying to get upload webauth files for several SSIDs to our Cisco 5500 Controller but ran into issues. I have since solved these issues, so this is basically a – how to – blogpost.

The error that I kept hitting was this:

2014_08_28_15_09_01_NMDCBPWLC100

This error basically means that there is something wrong with the tar file that you are trying to  upload.

Points you need to keep in mind are as follows:

  1. The tar file should be less than 1 MB.
  2. The number of files in the tar is also limited. I however have not established what the limit is. So far I have managed to upload a file with 12 items for 5 different SSIDs.
  3. The file name for the tar file itself and all items in it should each be less than 30 characters.

This is an example of the items that I want in my tar file

2014_08_28_15_21_38_login38

Now that I have all the files, editted with the required information and ready to be packed, the hardest thing is actually getting them tared correctly and ready to be used.

People advise that you can use the following programs.

Picozip

7Zip

PowerArchiver 2010 for Windows (GUI)

Truth be told, none of them worked for me. I think you should not waste your time on that, just get a virtual machine with Unix and you are set. That’s what worked for me. Error one down, 2 to go.

Next issue that I ran into was that even though my files were created in Unix, I still got the same error. This is because I did not have root access to the Linux server. The Server admin had created a folder for me so the files that I created did not have the root UDI and GDI described in this Support thread. https://supportforums.cisco.com/discussion/11038511/wlc-5508-webauth-bundle-tar-error-256. In short, the tar file that you create should be created from the root folder itself or you can simply change directories as I did below:

This is the original folder showing the files that I needed to tar

[UserXX@ServerXX ~]$ cd login38
[UserXX@ServerXX login38]$ ll
total 140
-rw-rw-r–. 1 UserXX UserXX 11004 May 12 2012 ButtonBackground.jpg
-rw-rw-r–. 1 UserXX UserXX 59601 May 11 2012 GuestPortal_Banner.jpg
-rw-rw-r–. 1 UserXX UserXX 3940 Aug 27 16:39 GuestWireless.Terms_DE.htm
-rw-rw-r–. 1 UserXX UserXX 5997 Nov 25 2013 GuestWireless.Terms.htm
-rw-rw-r–. 1 UserXX UserXX 3448 Aug 27 17:50 GuestWireless.Terms_LIT.htm
-rw-rw-r–. 1 UserXX UserXX 3810 Aug 27 17:10 GuestWireless.Terms_POL.htm
-rw-rw-r–. 1 UserXX UserXX 6000 Aug 27 16:57 GuestWireless.Terms_RU.htm
-rw-rw-r–. 1 UserXX UserXX 6292 Aug 27 18:10 login_DE.html
-rw-rw-r–. 1 UserXX UserXX 6665 Nov 25 2013 login.html
-rw-rw-r–. 1 UserXX UserXX 6254 Aug 27 17:52 login_LIT.html
-rw-rw-r–. 1 UserXX UserXX 6328 Aug 27 18:41 login_POL.html
-rw-rw-r–. 1 UserXX UserXX 6656 Aug 27 17:15 login_RU.html

Change the path to root

[UserXX@ServerXX login38]$ sudo chown root:root *
[UserXX@ServerXX login38]$ ll
total 140
-rw-rw-r–. 1 root root 11004 May 12 2012 ButtonBackground.jpg
-rw-rw-r–. 1 root root 59601 May 11 2012 GuestPortal_Banner.jpg
-rw-rw-r–. 1 root root 3940 Aug 27 16:39 GuestWireless.Terms_DE.htm
-rw-rw-r–. 1 root root 5997 Nov 25 2013 GuestWireless.Terms.htm
-rw-rw-r–. 1 root root 3448 Aug 27 17:50 GuestWireless.Terms_LIT.htm
-rw-rw-r–. 1 root root 3810 Aug 27 17:10 GuestWireless.Terms_POL.htm
-rw-rw-r–. 1 root root 6000 Aug 27 16:57 GuestWireless.Terms_RU.htm
-rw-rw-r–. 1 root root 6292 Aug 27 18:10 login_DE.html
-rw-rw-r–. 1 root root 6665 Nov 25 2013 login.html
-rw-rw-r–. 1 root root 6254 Aug 27 17:52 login_LIT.html
-rw-rw-r–. 1 root root 6328 Aug 27 18:41 login_POL.html
-rw-rw-r–. 1 root root 6656 Aug 27 17:15 login_RU.html
[UserXX@ServerXX login38]$ man chown

Tar the files

[UserXX@ServerXX login38]$ tar -cvf weblogin38.tar ./*
./ButtonBackground.jpg
./GuestPortal_Banner.jpg
./GuestWireless.Terms_DE.htm
./GuestWireless.Terms.htm
./GuestWireless.Terms_LIT.htm
./GuestWireless.Terms_POL.htm
./GuestWireless.Terms_RU.htm
./login_DE.html
./login.html
./login_LIT.html
./login_POL.html
./login_RU.html

Verify that the tared file is there

[UserXX@ServerXX login38]$ ls
ButtonBackground.jpg GuestWireless.Terms_POL.htm login_POL.html
GuestPortal_Banner.jpg GuestWireless.Terms_RU.htm login_RU.html
GuestWireless.Terms_DE.htm login_DE.html weblogin38.tar
GuestWireless.Terms.htm login.html
GuestWireless.Terms_LIT.htm login_LIT.html

Use a program like WinSCP to copy the file from the server to the required destination or desktop

2014_08_28_15_41_36_new_2_Notepad_

Copy the tar file to the controller

2014_08_28_15_43_57_wldcbpinf02.mkcorp.com_Remote_Desktop_Connection

That should be successful.

Ps. The last error that I ran into was that no file actually had a login.html name, all the  login files had login_RU or sth depending on the Country. Once I added one with the login.html name, everything worked well.

So now you know 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s