All,
I've been working with Roger Moffatt on identifying an Authentication
Error received when using the iPad/iPhone Tester Application. As a
side note,I haven't tried the non-tester one yet or the beta client
but will soon as we're able to get the tester application to function
now.
After a lot of reverse engineering of the iFolder base I stumbled upon
a workaround. I do believe that those who use LDAP for their user
provisioning will not run into this issue but for those that don't,
this workaround should work for you.
First, the testing iFolder environment I'm using is based upon the
instructions here:
http://www.daniellench.com/2010/08/ifolder-on-opensuse-11-3/
That is what I used to setup and configure the environment prior to
testing, OpenSUSE 11.3 using the 1-Click install option for the
iFolder Server. Also, as you've already guessed, the testing
environment doesn't use any type of LDAP service relying exclusively
on the local store for authentication and user provisioning.
To get straight to the fix, you simple have to configure the iFolder
server to use the LDAP authentication method versus the built in
simplified one. Although you're not using LDAP, the method in which
it identifies/authenticates the users is what allows the iPad/iPhone
Tester Application to access the data.
Do the following to change a system from the simplified identification/
authentication method to the LDAP identification/authentication
method. (Assumption right now is you used the default store location
for iFolder so change as needed.)
Copy the LDAP authentication module from the simias source:
# cp /etc/simias/bill/modules/IdentityManagement.conf /var/lib/simias/
modules/IdentityManagement.conf
Change ownership of the module files to make sure they're owned by the
Apache account:
# chown -R wwwrun:www /var/lib/simias/modules
Restart the Apache service to reload:
# su -
# rcapache2 restart
That's it! You should now be able to successfully test out the iPad/
iPhone Tester Application. Now, before you leave this post to go try
it out you should note this will change at least one administrative
behavior.
The system is now using the 'IdentityManagement.conf' configuration so
it thinks your provisioning of users is all coming through the LDAP
service. Unfortunately what this does is remove the user 'Create'
option on the iFolder admin website interface. The good news is you
can still use the command line option to manage the user base or go
back and forth on removing and re-adding the 'IdentityManagement.conf'
file. I prefer to not continuously restart the Apache service so am
using the command line interface.
Example command to add a user. (for a complete list of options type
'# mono UserCmd.exe --help')
# cd /usr/lib/simias/bin
# mono UserCmd.exe create --url
http://localhost --user John --
password <password> --first John --last Doe --full "John Doe" --admin-
name admin --admin-password novell
I hope this helps those having authentication issues when not using an
LDAP environment. I plan on testing an LDAP configuration to verify
my results but for now this should get you up and going.
Thanks
Court