Das Notes Forum
Domino 9 und frühere Versionen => Administration & Userprobleme => Thema gestartet von: gapee am 24.10.03 - 09:36:07
-
Tach!
Ich hab da ein Problem. Und zwar schreibe ich eine COM - Anwendung mit der ich ein paar, also genau genommen ein paar tausend, Dokumente in einer bestimmte LN DB auf einem bestimmten Server abspreichern möchte. So weit so gut.
Nun soll mein Programm von verschiedenen Benutzern verwendet werden, die auch alle eine LN ID haben.
Mein Problem ist jetzt die Authentifizierung der verschiedenen User mit username + id aus meiner Anwendung heraus.
In der Hilfe habe ich dann sowas wie:
Set S = CreateObject("Lotus.NotesSession") und
a) Call S.Initialize bzw.
b) Call S.InitializeUsingNotesUserName(sUsername, sPassword)
gefunden.
Variante a) hilft mir da gar nicht weiter, weil sie eine anscheinend gecachte LN ID verwendet (man braucht also gar kein Passwort, um ein Dokument anzulegen) und
Variante b) sagt mir andauernd Laufzeitfehler blahblahblah und 'You must be running on a server'.
Hab ich da irgendwas übersehen?
Im Übrigen habe ich die Domino Library (nicht die Notes Library) in mein Projekt hineingebunden.
Any help will b appreciated
(http://www.fcbayern.t-online.de/pics/h_logo_fcb.jpg)
-
RTFM
Steht ganz klar in der Hilfe:
Initialize:
this method can be used on a computer with a Notes client or Domino server and bases the session on the current user ID. If a password is specified, it must match the user ID password. If a password is not specified, the user is prompted for a password as required and as the software permits. If the software does not support prompting (for example, VBScript under ASP/IIS), you must supply the password or the user ID must not have one.
InitializeUsingNotesUserName:
this method can be used only on a computer with a Domino server. If a name is specified, the InitializeUsingNotesUserName method looks it up in the local Domino Directory and permits access to the local server depending on the "Server Access" and "COM Restrictions" settings. The password must match the Internet password associated with the name. If no name is specified, access is granted if the server permits Anonymous access.
Bei Variante a), die Du nehmen MUSST, wird nicht eine gecachete ID verwendet, sondern die ID verwendet, welche in der NOTES.INI angegeben ist (die zuletzt im Notes-Client verwendete).
-
Danke für die schnelle Antwort.
Ich kann da ein paar Erkenntnisse rausziehen und deswegen hilft es mir für das erste weiter.
Möglicherweise setze ich diesen Thread bei Gelegenheit fort
Viele Grüsse :)
(http://www.fcbayern.t-online.de/pics/h_logo_fcb.jpg)