-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created function for create file user.ldif
- Loading branch information
Victor
authored and
Victor
committed
Jan 25, 2023
1 parent
0ed28f9
commit 0800090
Showing
4 changed files
with
109 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package exceptions; | ||
|
||
public class WriteFileException extends RuntimeException { | ||
public WriteFileException(String message) { | ||
super(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
package main; | ||
|
||
import ldapCreater.LDAPCreater; | ||
|
||
public class Main { | ||
private Main() { | ||
} | ||
|
||
public static void main(String[] args) { | ||
if (args.length != 3) { | ||
System.out.println("Please enter arguments (filename, idStart, ou)"); | ||
return; | ||
} | ||
|
||
String filename = args[0]; | ||
int idStart = Integer.parseInt(args[1]); | ||
String ou = args[2]; | ||
|
||
LDAPCreater ldapCreater = new LDAPCreater(filename, idStart, ou); | ||
|
||
ldapCreater.createLDAPInfo(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters