Updated dependency versions (viper, cobra, and ldap)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2022-06-11 01:15:44 -04:00
parent b500c3262c
commit 092c9f3791
13 changed files with 508 additions and 126 deletions

View File

@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
ldif "github.com/vetinari/ldif"
ldap "gopkg.in/ldap.v2"
ldap "github.com/go-ldap/ldap/v3"
)
func init() {
@ -61,7 +61,7 @@ var ldifAddCmd = &cobra.Command{
entryDn := entry.DN
// create a new LDAP add request
addRequest := ldap.NewAddRequest(entryDn)
addRequest := ldap.NewAddRequest(entryDn, nil)
// loop through and add the entry attributes
for _, entryAttr := range entry.Attributes {

View File

@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
ldif "github.com/vetinari/ldif"
ldap "gopkg.in/ldap.v2"
ldap "github.com/go-ldap/ldap/v3"
)
func init() {