[Rt-devel] RT-3.8.1 - How to generate LDAP users automatically before they login

Michael Bieniek michael at bilderhelden.de
Wed Oct 29 07:51:35 EDT 2008


Hello at all,
i have a problem. I want to generate LDAP users automatically. Thats
means that i want to code a few lines that read all LDAP users and
write them into the database. I want to do that because i didn't want
that every user first have to login before i can edit his rights and
group permissions. LDAP auth with RT::Authen::ExternalAuth runs well.
Every unkown user that login gets a unprivileged account if LDAP auth
was successful (after i followed this post:
http://www.gossamer-threads.com/lists/rt/users/77165#77165 ).

But how can i create all users before they login?

I've tried to code a python script to fill in the database with users
but that is very tricky because it does not show the users in the
webpanel if i fill in the names and so on in the "Users" Table. The
LOG of postgresql is very difficult to read (see attachment).

Does anybody have an idea how to get all ldap users in the database
before they must login?

--- In kürze auf deutsch

Ich habe das Problem das ich alle LDAP User anlegen will bevor die
sich zum ersten mal einloggen müssen. Ich will damit schon im Vorfeld
bestimmen wer in welche Gruppe kommt und welche Rechte hat. Die Firma
für die ich arbeite hat über 130 Mitarbeiter, und da sollte schon vor
dem ersten Login klar sein wer was für Rechte auf dem Ticketsystem
hat. Ich habe mir überlegt das ein Script User (Username und
Emailadressen) anlegt die es vorher aus dem LDAP abgefragt hat. Dann
könnte ich schon mit diesen arbeiten und Rechte verteilen. Wenn der
User sich dann per External-Auth anmeldet, wird die Anmeldung nur noch
den Datensatz des Users updaten müssen (Werte wie External Auth ID).

Leider klappt das nicht weil das SQL Logfile leider nur sagt das beim
erstellen über das Webinterface Werte wie "$1" in die Datenbank
geschrieben werden. Deshalb ist es für mich nicht nachvollziehbar wie
ich ein Script schreiben soll. Denn das alleinige Eintragen der User
in die Tabelle Users bringt in diesem  Fall nichts...

Ich hoffe das mir hier jemand weiterhelfen kann.

With best regards / Grüße
Michael Bieniek


More information about the Rt-devel mailing list