-/*
- * Copyright (c) 1998-2008 Apple Inc. All rights reserved.
+/*
+ * Copyright (c) 1998-2016 Apple Inc. All rights reserved.
* Portions Copyright (c) 1988 by Sun Microsystems, Inc.
* Portions Copyright (c) 1988 The Regents of the University of California.
* All rights reserved.
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <OpenDirectory/OpenDirectory.h>
+#include "passwd.h"
+
//-------------------------------------------------------------------------------------
// od_check_passwd
//-------------------------------------------------------------------------------------
-int od_check_passwd(const char *uname, const char *domain)
+int
+od_check_passwd(const char *uname, const char *domain)
{
int authenticated = 0;
-
+
ODSessionRef session = NULL;
ODNodeRef node = NULL;
ODRecordRef rec = NULL;
}
}
}
-
+
if (!authenticated) {
fprintf(stderr, "Sorry\n");
exit(1);
return 0;
}
-
-
-
-
-
-