1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 /* 22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23 * Use is subject to license terms. 24 */ 25 26 #pragma ident "%Z%%M% %I% %E% SMI" 27 28 #include <stdio.h> 29 #include <unistd.h> 30 31 #include <smbsrv/libsmb.h> 32 #include <smbsrv/libmlsvc.h> 33 #include <smbsrv/mlsvc_util.h> 34 #include <smbsrv/lsalib.h> 35 36 void dssetup_initialize(void); 37 void srvsvc_initialize(void); 38 void wkssvc_initialize(void); 39 void lsarpc_initialize(void); 40 void logr_initialize(void); 41 void netr_initialize(void); 42 void samr_initialize(void); 43 void svcctl_initialize(void); 44 void winreg_initialize(void); 45 46 /* 47 * All mlrpc initialization is invoked from here. 48 * Returns 0 upon success. Otherwise, returns -1. 49 */ 50 int 51 mlsvc_init(void) 52 { 53 srvsvc_initialize(); 54 wkssvc_initialize(); 55 lsarpc_initialize(); 56 netr_initialize(); 57 dssetup_initialize(); 58 samr_initialize(); 59 svcctl_initialize(); 60 winreg_initialize(); 61 logr_initialize(); 62 63 (void) sam_init(); 64 return (0); 65 } 66