SID-01082: LDAPNumericUserCausesRCSErrors
Status: |
Answered |
TWiki version: |
5.0.1 |
Perl version: |
5.10.0 |
Category: |
CategoryAuthentication |
Server OS: |
Fedora 12 |
Last update: |
12 years ago |
Hello.
I'm trying to get LDAP authentication working, in preparation of pointing our stuff at Active Directory in the near future. I'm pointing at a LDAP server on the same Fedora box.
When I try to save a topic, I get the following error from
RCS:
Error saving topic
During save of
TestFile02 an error was found by the version control system. Please notify your TWiki administrator.
/usr/bin/ci -m%COMMENT|U% -t-none -w%USERNAME|S% -u %FILENAME|F% of .../Sandbox/TestFile02.txt failed: 1
Go back in your browser and save your changes locally.
The topic changes are saved, but the version control is not handled, and the lease remains.
The uids in LDAP are numeric, to match those in AD. I think that is the problem, as I created another ID which is alpha, and it works ok.
Any ideas?
Thanks,
Aaron
--
AaronLWalker - 2011-01-21
Discussion and Answer
I find that if I put quotes around the argument for the
-w switch for
ciCmd
in
LocalSite.cfg
, then that makes the problem go away. Sound like a valid fix? See any drawbacks? Now I'll test it with non-numeric ids...
$TWiki::cfg{RCS}{ciCmd} = '/usr/bin/ci -m%COMMENT|U% -t-none -w"%USERNAME|S%" -u %FILENAME|F%';
--
AaronLWalker - 2011-01-24
I vaguely remember that
RCS does not support names that start with a number.
You fix looks feasible, but should be tested against other environments, such as Windows and OS-X.
What kind of LDAP auth do you use?
LdapContrib? TWiki has three types of user representations: login name (
jsmith
), canonical user ID (
LdapMapping_jsmith
) and WikiName (
JohnSmith
). TWiki uses the canonical user ID to store content. That is, if done with proper mapping, numeric login names are not an issue with
RCS.
--
PeterThoeny - 2011-01-27
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2011-05-02
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.