diff --git a/src/auth/KeyRing.cc b/src/auth/KeyRing.cc index 61a89d808df..a64d238fafd 100644 --- a/src/auth/KeyRing.cc +++ b/src/auth/KeyRing.cc @@ -68,6 +68,7 @@ void KeyRing::print(ostream& out) p != keys.end(); ++p) { out << p->first << std::endl; + out << "\tauid: " << p->second.auid << std::endl; out << "\tkey: " << p->second.key << std::endl; for (map::iterator q = p->second.caps.begin(); diff --git a/src/auth/KeyRing.h b/src/auth/KeyRing.h index bbd250b82f6..1d39882c0fb 100644 --- a/src/auth/KeyRing.h +++ b/src/auth/KeyRing.h @@ -55,6 +55,9 @@ public: void set_caps(EntityName& name, map& caps) { keys[name].caps = caps; } + void set_uid(EntityName& ename, __u64 auid) { + keys[ename].auid = auid; + } void import(KeyRing& other); // encoders