Added attributes parameter to search commnad

This commit is contained in:
Gregory Ballantine 2018-07-14 19:48:24 -04:00
parent 68dabe3165
commit 034d8b1525

View File

@ -33,6 +33,7 @@ var searchCmd = &cobra.Command{
Short: "Search an LDAP directory", Short: "Search an LDAP directory",
Long: `Perform an LDAP search operation on an LDAP directory`, Long: `Perform an LDAP search operation on an LDAP directory`,
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
// create slice of attributes
var attrs []string = nil var attrs []string = nil
if flagAttrs != "" { if flagAttrs != "" {
attrs = strings.Split(flagAttrs, ",") attrs = strings.Split(flagAttrs, ",")