xref: /haiku/src/tests/servers/registrar/FakeAuthenticationManager.h (revision e81a954787e50e56a7f06f72705b7859b6ab06d1)
1 /*
2  * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef FAKE_AUTHENTICATION_MANAGER_H
6 #define FAKE_AUTHENTICATION_MANAGER_H
7 
8 
9 #include <OS.h>
10 
11 
12 namespace BPrivate {
13 	class KMessage;
14 }
15 
16 
17 class AuthenticationManager {
18 public:
19 								AuthenticationManager();
20 								~AuthenticationManager();
21 
22 			status_t			Init();
23 
24 private:
25 	class UserDB;
26 	class GroupDB;
27 
28 private:
29 			port_id				fRequestPort;
30 			thread_id			fRequestThread;
31 			UserDB*				fUserDB;
32 			GroupDB*			fGroupDB;
33 			BPrivate::KMessage*	fPasswdDBReply;
34 			BPrivate::KMessage*	fGroupDBReply;
35 			BPrivate::KMessage*	fShadowPwdDBReply;
36 };
37 
38 
39 #endif	// FAKE_AUTHENTICATION_MANAGER_H
40