Tracd Realm

I am trying to setup tracd for the project I am currently working on. After creating a password file with the python script given in the site I am trying to start the server with authentication on. But it throws up warning saying No users found in the realm. What actually is a realm - I tried using trac as the value and also tried leaving it empty. I am using Windows XP. I am using Tracd Standalone server.

The Command Line sent was: tracd --port 8000 --auth=My_Test_Project,D:\My_Test_Project\Documents\Trac\digest.txt,Trac D:\My_Test_Project\Documents\Trac

The Warning message was - 'Warning: found no users in realm: trac'

Thanks...


Asked by: Thomas830 | Posted: 24-09-2021






Answer 1

Replacing the above said command line with the one bellow helps.

tracd --port 8000 --auth=Trac,D:\My_Test_Project\Documents\Trac\digest.txt,Trac D:\My_Test_Project\Documents\Trac

The string after --auth= should be the environment name and not the project name.

Answered by: Blake469 | Posted: 25-10-2021



Answer 2

Check your password digest file. Looking at mine it appears that the output is stored as a line with three fields in this format: username:realm:passwordhash. If your getting that warning then it could be a mismatch between the realm field in the digest file and the realm that you're passing in when launching tracd.


Looking in the python generator script there are three options:

  • -u for user
  • -p for password
  • -r for realm

When I generate my digest file using this command line (assuming you named it trac-digest.py):

python trac-digest.py -u user -p pass >> digest.txt

it generates this line in my digest.txt:

user:trac:1d395970d2a9a075d0536a4d6e4d0679

So looks like the default realm is trac and launching tracd with the --auth option specified like the documentation says always gives me that warning 'Warning: found no users in realm: realm' But when I generate my digest file using the -r parameter:

python trac-digest.py -u user -p pass -r realm >> digest.txt

it generates this line in my digest.txt:

user:realm:1d395970d2a9a075d0536a4d6e4d0679

And I no longer get that warning when I specify the realm that I passed to trac-digest.py.

Answered by: Roman649 | Posted: 25-10-2021



Answer 3

The text referred to says that you must specify the realm name as "trac", not "Trac", but I have no chance of testing whether that makes any difference, sorry.

Answered by: Melissa513 | Posted: 25-10-2021



Similar questions

python - tracd login Error

I am trying to use tracd but i cannot get past the authentication part. I created a digest file based on their wiki description: admin:ITC:98e7d6e0a7506cd5558067794aed9cce PS C:\Users\22193\AppData\Roaming\Python\Scripts> .\tracd.exe --port 8000 auth="Test_Trac,D:\TracEnv\conf\login2.digest, ITC" D:\TracEnv Server starting in PID...


python - What's the best Django search app?


How can I use a DLL file from Python?

What is the easiest way to use a DLL file from within Python? Specifically, how can this be done without writing any additional wrapper C++ code to expose the functionality to Python? Native Python functionality is strongly preferred over using a third-party library.


python - PubSub lib for c#

Is there a c# library which provides similar functionality to the Python PubSub library? I think it's kind of an Observer Pattern which allows me to subscribe for messages of a given topic instead of using events.


python - What is the best way to copy a list?

This question already has answers here:


python - Possible Google Riddle?

My friend was given this free google website optimizer tshirt and came to me to try and figure out what the front logo meant. t-shirt So, I have a couple of guesses as to what it means, but I was just wondering if there is something more. My first guess is that eac...


How do you check whether a python method is bound or not?

Given a reference to a method, is there a way to check whether the method is bound to an object or not? Can you also access the instance that it's bound to?


ssh - How to scp in Python?

What's the most pythonic way to scp a file in Python? The only route I'm aware of is os.system('scp "%s" "%s:%s"' % (localfile, remotehost, remotefile) ) which is a hack, and which doesn't work outside Linux-like systems, and which needs help from the Pexpect module to avoid password prompts unless you already have passwordless SSH set up to the remote host. I'm aware of Twisted'...


python - How do I create a new signal in pygtk

I've created a python object, but I want to send signals on it. I made it inherit from gobject.GObject, but there doesn't seem to be any way to create a new signal on my object.


python - What do I need to import to gain access to my models?

I'd like to run a script to populate my database. I'd like to access it through the Django database API. The only problem is that I don't know what I would need to import to gain access to this. How can this be achieved?


python - How do I edit and delete data in Django?

I am using django 1.0 and I have created my models using the example in the Django book. I am able to perform the basic function of adding data; now I need a way of retrieving that data, loading it into a form (change_form?! or something), EDIT it and save it back to the DB. Secondly how do I DELETE the data that's in the DB? i.e. search, select and then delete! Please show me an example of the code ...






Still can't find your answer? Check out these communities...



PySlackers | Full Stack Python | NHS Python | Pythonist Cafe | Hacker Earth | Discord Python



top