Commit 997822b4 authored by jan.koester's avatar jan.koester
Browse files

some fixes

parent 9f2c3d7c
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for src/admin.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ namespace authdb {
            domel=DomainChangeForm(curreq,curreq->getRequestURL(),_AdminBackend,ddat);

            if(!domel){
                throw AuthBackendError("listUsers: cannot load doamin's!");
                throw AuthBackendError("listUsers: cannot load domain's!");
            }

            char cdid[255];
+2 −2
Changes for src/domain.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ const char * authdb::DomainData::getDomainName(){


void authdb::DomainData::setStorageType(const int type){
    setAuthData<const int>(DataType::DomainData,StorageType::IntStorage,this,&_storageType,"domainstorage",&type,sizeof(type));
    setAuthData<const int>(DataType::DomainData,StorageType::IntStorage,this,&_storageType,"domainstorage",&type,sizeof(int));
}

int authdb::DomainData::getStorageType(){
@@ -58,7 +58,7 @@ int authdb::DomainData::getStorageType(){
}

void authdb::DomainData::setStorageOptions(const char *opts){
    return setAuthData<const char>(DataType::DomainData,StorageType::TextStorage,this,&_storageOptions,"domainoptions",opts,strlen(opts));
    return setAuthData<const char>(DataType::DomainData,StorageType::TextStorage,this,&_storageOptions,"domainoptions",opts,strlen(opts)+1);
}

const char * authdb::DomainData::getStorageOptions(){
+1 −1
Changes for src/gpo.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ const char * authdb::GpoData::getDesc(){
}

void authdb::GpoData::setGpoValue(const bool dest){
    setAuthData<const bool>(DataType::PolicyData,StorageType::BoolStorage,this,&_GpoDefault,"gpodefault",&dest,sizeof(dest));
    setAuthData<const bool>(DataType::PolicyData,StorageType::BoolStorage,this,&_GpoDefault,"gpodefault",&dest,sizeof(bool));
}

bool authdb::GpoData::getGpoValue(){