maatma: don't use _ in domain names
This commit is contained in:
parent
7380a81172
commit
e085dbb5e3
@ -121,7 +121,7 @@ func parseKnotZoneRead(args ...string) (rr []Entry, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (student Student) myAssociatedDomain() (string) {
|
func (student Student) myAssociatedDomain() (string) {
|
||||||
return fmt.Sprintf("%s.%s.", student.Login, AssociatedDomainSuffix)
|
return fmt.Sprintf("%s.%s.", strings.Replace(student.Login, "_", "-", -1), AssociatedDomainSuffix)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (student Student) GetAssociatedDomains() (ds []string) {
|
func (student Student) GetAssociatedDomains() (ds []string) {
|
||||||
@ -176,7 +176,7 @@ func (student Student) AddAssociatedDomains() (err error) {
|
|||||||
|
|
||||||
|
|
||||||
func (student Student) MyDelegatedDomain() (string) {
|
func (student Student) MyDelegatedDomain() (string) {
|
||||||
return fmt.Sprintf("%s.%s.", student.Login, DelegatedDomainSuffix)
|
return fmt.Sprintf("%s.%s.", strings.Replace(student.Login, "_", "-", -1), DelegatedDomainSuffix)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (student Student) getRRDelegatedDomain(dn string, rr string) (rrs []Entry, err error) {
|
func (student Student) getRRDelegatedDomain(dn string, rr string) (rrs []Entry, err error) {
|
||||||
|
Reference in New Issue
Block a user