@@ -1,11 +0,0 @@
-package ldap
-
-import (
- "strings"
- "gogs.carducci-dante.gov.it/andrea.fazzi/karmen/config"
-)
-func DN(rdns ...string) string {
- return strings.Join(append(rdns, config.LDAPRootDN), ",")
-}
@@ -1,23 +0,0 @@
- "testing"
- "github.com/remogatto/prettytest"
-type testSuite struct {
- prettytest.Suite
-func TestRunner(t *testing.T) {
- prettytest.Run(
- t,
- new(testSuite),
- )
-func (t *testSuite) TestDN() {
- t.Equal("cn=billy,dc=foo,dc=org", DN("cn=billy"))
- t.Equal("cn=billy,ou=people,dc=foo,dc=org", DN("cn=billy", "ou=people"))