Module Expr Str Assign NameStore Str Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad BinOpMult UnaryOpUSub NameLoad Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpOr CompareEq NameLoad Num CompareEq NameLoad Num body Assign NameStore Num orelse Assign NameStore Call NameLoad BinOpMult UnaryOpUSub NameLoad Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad BinOpMult NameLoad Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str Call NameLoad NameLoad If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str Call NameLoad NameLoad If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword BinOpMod Str Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore NameLoad If NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad orelse TryExcept body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str BinOpMod Str Call NameLoad NameLoad Call NameLoad NameLoad Str Call NameLoad NameLoad NameLoad Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Return Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Assign NameStore Str orelse If CompareEq NameLoad Str body Assign NameStore Str orelse Expr Call AttributeLoad NameLoad attr Str NameLoad Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword BinOpMod Str Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name TupleStore NameStore NameStore body If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Raise Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Num orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareNotEq NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str If BoolOpOr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name TupleStore NameStore NameStore body If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Num For TupleStore NameStore TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body AugAssignAdd NameStore Num Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num Num If CompareEq NameLoad Num body Assign NameStore Num orelse If BinOpBitAnd NameLoad Num body If CompareGt Call NameLoad NameLoad Num body Assign NameStore Num orelse Assign NameStore Num orelse If CompareGt Call NameLoad NameLoad Num body Assign NameStore Num orelse Assign NameStore Num If CompareGt NameLoad Call AttributeLoad NameLoad attr body Assign NameStore Num orelse Assign NameStore Num Assign NameStore BinOpRShift BinOpBitAnd NameLoad Num Num Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str BinOpMod Str Call NameLoad Call AttributeLoad NameLoad attr Str SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Str Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad decorator_list Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad For NameStore NameLoad body For NameStore SubscriptLoad NameLoad Index NameLoad body Assign NameStore NameLoad For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad body Assign NameStore NameLoad Break If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd Str NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Dict Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword BinOpMod Str NameLoad keyword ListLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad Str NameLoad NameLoad NameLoad orelse If CompareLtE AttributeLoad NameLoad attr Num body Return SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index NameLoad Index Num orelse Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIs Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Raise Call NameLoad Str orelse Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If CompareEq Call AttributeLoad SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Index Num attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad NameLoad body If CompareGtE NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad Num If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Call NameLoad AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Continue orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Call NameLoad AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Continue orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareNotEq NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Continue TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Call NameLoad AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Continue orelse Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Continue Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Dict Assign NameStore Dict Assign NameStore NameLoad For NameStore NameLoad body If BoolOpAnd NameLoad CompareEq NameLoad SubscriptLoad NameLoad Index Str body Continue Assign NameStore SubscriptLoad NameLoad Index Str If CompareLt SubscriptLoad NameLoad Index Str Num body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str NameLoad Continue If CompareGtE SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore BinOpAdd SubscriptLoad NameLoad Index Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpBitAnd AttributeLoad NameLoad attr BinOpBitOr BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpOr CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad AttributeLoad NameLoad attr body Pass orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Slice Num Assign AttributeStore NameLoad attr BinOpBitOr BinOpBitAnd AttributeLoad NameLoad attr UnaryOpInvert AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Slice Num orelse If BoolOpAnd CompareEq NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr BinOpBitAnd AttributeLoad NameLoad attr UnaryOpInvert AttributeLoad NameLoad attr orelse If BoolOpAnd CompareEq NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr BinOpBitAnd AttributeLoad NameLoad attr UnaryOpInvert AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad TryExcept body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num handlers ExceptHandler type AttributeLoad NameLoad attr body TryExcept body Assign SubscriptStore NameLoad Index NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr handlers ExceptHandler type NameLoad body Pass If BoolOpAnd UnaryOpNot NameLoad CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareIn Call NameLoad NameLoad NameLoad body If CompareNotIn AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Call NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Call NameLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Raise Call NameLoad Str Assign NameStore Call NameLoad ListComp Call NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad ListComp BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Raise Call NameLoad Str Assign NameStore Dict Assign NameStore Dict Assign NameStore Dict If NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Num Index Num attr Str For NameStore Call AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call NameLoad NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad orelse Break Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Num For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If CompareIn NameLoad Call AttributeLoad NameLoad attr body TryExcept body If NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad Str orelse Assign SubscriptStore NameLoad Index NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr handlers ExceptHandler type NameLoad body Pass TryExcept body If NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad Str orelse Assign SubscriptStore NameLoad Index NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr handlers ExceptHandler type NameLoad body Pass TryExcept body If NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad Str orelse Assign SubscriptStore NameLoad Index NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad If UnaryOpNot BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If CompareNotEq AttributeLoad NameLoad attr Num body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If CompareEq Call AttributeLoad NameLoad attr Str body If CompareNotEq AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call NameLoad BinOpAdd Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call NameLoad BinOpAdd Call NameLoad NameLoad Str Raise Call NameLoad Str If CompareEq Call AttributeLoad NameLoad attr Str body If CompareEq AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call NameLoad BinOpAdd Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr SubscriptLoad NameLoad Index NameLoad Str NameLoad If BoolOpAnd CompareIn NameLoad NameLoad CompareIsNot SubscriptLoad NameLoad Index NameLoad NameLoad CompareIn NameLoad NameLoad CompareIsNot SubscriptLoad NameLoad Index NameLoad NameLoad CompareIn NameLoad NameLoad CompareIsNot SubscriptLoad NameLoad Index NameLoad NameLoad body Expr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad SubscriptLoad NameLoad Index NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword Str keyword SubscriptLoad NameLoad Index NameLoad keyword SubscriptLoad NameLoad Index NameLoad keyword SubscriptLoad NameLoad Index NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If CompareIn Call NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Call NameLoad AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr If AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr If AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A Support code for upgrading from Samba 3 to Samba 4. N/A __docformat__ restructuredText N/A ldb N/A time N/A pwd samba Ldb registry samba.param LoadParm samba.provision provision FILL_FULL ProvisioningError setsysvolacl samba.samba3 passdb samba.samba3 param s3param samba.dcerpc lsa samr security samba.dcerpc.security dom_sid samba.credentials Credentials samba dsdb samba.ndr ndr_pack samba unix2nttime import_sam_policy N/A N/A samdb policy logger N/A N/A N/A Import a Samba 3 policy.

    :param samdb: Samba4 SAM database
    :param policy: Samba3 account policy
    :param logger: Logger object
     N/A m N/A N/A ldb Message N/A N/A m dn N/A N/A samdb get_default_basedn N/A N/A min password length policy N/A N/A N/A m N/A a01 N/A N/A ldb MessageElement N/A str N/A policy N/A min password length N/A ldb FLAG_MOD_REPLACE minPwdLength N/A N/A password history policy N/A N/A N/A m N/A a02 N/A N/A ldb MessageElement N/A str N/A policy N/A password history N/A ldb FLAG_MOD_REPLACE pwdHistoryLength N/A N/A minimum password age policy N/A N/A min_pw_age_unix N/A policy N/A minimum password age N/A min_pw_age_nt N/A int N/A N/A min_pw_age_unix 10000000.0 N/A N/A m N/A a03 N/A N/A ldb MessageElement N/A str min_pw_age_nt N/A ldb FLAG_MOD_REPLACE minPwdAge N/A N/A maximum password age policy N/A N/A max_pw_age_unix N/A policy N/A maximum password age N/A N/A N/A max_pw_age_unix -1 N/A max_pw_age_unix 0 N/A N/A max_pw_age_nt -9223372036854775808 N/A N/A max_pw_age_nt N/A int N/A N/A max_pw_age_unix 10000000.0 N/A N/A m N/A a04 N/A N/A ldb MessageElement N/A str max_pw_age_nt N/A ldb FLAG_MOD_REPLACE maxPwdAge N/A N/A lockout duration policy N/A N/A lockout_duration_mins N/A policy N/A lockout duration N/A lockout_duration_nt N/A unix2nttime N/A lockout_duration_mins 60 N/A N/A m N/A a05 N/A N/A ldb MessageElement N/A str lockout_duration_nt N/A ldb FLAG_MOD_REPLACE lockoutDuration N/A N/A N/A N/A N/A samdb modify m N/A N/A N/A N/A ldb LdbError N/A e N/A N/A N/A N/A logger warn Could not set account policy, (%s) N/A str e N/A add_posix_attrs N/A N/A logger samdb sid name nisdomain xid_type home shell pgid N/A None None None N/A N/A Add posix attributes for the user/group

    :param samdb: Samba4 sam.ldb database
    :param sid: user/group sid
    :param sid: user/group name
    :param nisdomain: name of the (fake) NIS domain
    :param xid_type: type of id (ID_TYPE_UID/ID_TYPE_GID)
    :param home: user homedir (Unix homepath)
    :param shell: user shell
    :param pgid: users primary group id
     N/A N/A N/A m N/A N/A ldb Message N/A N/A m dn N/A N/A ldb Dn samdb N/A <SID=%s> N/A str sid N/A N/A xid_type ID_TYPE_UID N/A N/A N/A m N/A unixHomeDirectory N/A N/A ldb MessageElement N/A str home N/A ldb FLAG_MOD_REPLACE unixHomeDirectory N/A N/A m N/A loginShell N/A N/A ldb MessageElement N/A str shell N/A ldb FLAG_MOD_REPLACE loginShell N/A N/A m N/A gidNumber N/A N/A ldb MessageElement N/A str pgid N/A ldb FLAG_MOD_REPLACE gidNumber N/A N/A m N/A msSFU30NisDomain N/A N/A ldb MessageElement N/A str nisdomain N/A ldb FLAG_MOD_REPLACE msSFU30NisDomain N/A N/A N/A samdb modify m N/A N/A N/A N/A ldb LdbError N/A e N/A N/A N/A N/A logger warn Could not add posix attrs for AD entry for sid=%s, (%s) N/A str sid N/A str e N/A add_ad_posix_idmap_entry N/A N/A samdb sid xid xid_type logger N/A N/A N/A Create idmap entry

    :param samdb: Samba4 sam.ldb database
    :param sid: user/group sid
    :param xid: user/group id
    :param xid_type: type of id (ID_TYPE_UID/ID_TYPE_GID)
    :param logger: Logger object
     N/A N/A N/A m N/A N/A ldb Message N/A N/A m dn N/A N/A ldb Dn samdb N/A <SID=%s> N/A str sid N/A N/A xid_type ID_TYPE_UID N/A N/A N/A m N/A uidNumber N/A N/A ldb MessageElement N/A str xid N/A ldb FLAG_MOD_REPLACE uidNumber N/A N/A m N/A objectClass N/A N/A ldb MessageElement posixAccount N/A ldb FLAG_MOD_ADD objectClass N/A N/A N/A xid_type ID_TYPE_GID N/A N/A N/A m N/A gidNumber N/A N/A ldb MessageElement N/A str xid N/A ldb FLAG_MOD_REPLACE gidNumber N/A N/A m N/A objectClass N/A N/A ldb MessageElement posixGroup N/A ldb FLAG_MOD_ADD objectClass N/A N/A N/A samdb modify m N/A N/A N/A N/A ldb LdbError N/A e N/A N/A N/A N/A logger warn Could not modify AD idmap entry for sid=%s, id=%s, type=%s (%s) N/A str sid N/A str xid xid_type N/A str e N/A add_idmap_entry N/A N/A idmapdb sid xid xid_type logger N/A N/A N/A Create idmap entry

    :param idmapdb: Samba4 IDMAP database
    :param sid: user/group sid
    :param xid: user/group id
    :param xid_type: type of id (ID_TYPE_UID/ID_TYPE_GID)
    :param logger: Logger object
     N/A found False N/A msg N/A N/A idmapdb search expression N/A objectSid=%s N/A str sid N/A N/A N/A msg count 1 N/A N/A found True N/A found N/A N/A N/A N/A m N/A N/A ldb Message N/A N/A m dn N/A N/A msg N/A 0 N/A dn N/A N/A m N/A xidNumber N/A N/A ldb MessageElement N/A str xid N/A ldb FLAG_MOD_REPLACE xidNumber N/A N/A m N/A type N/A N/A ldb MessageElement xid_type N/A ldb FLAG_MOD_REPLACE type N/A N/A N/A idmapdb modify m N/A N/A N/A N/A ldb LdbError N/A e N/A N/A N/A N/A logger warn Could not modify idmap entry for sid=%s, id=%s, type=%s (%s) N/A str sid N/A str xid xid_type N/A str e N/A N/A N/A N/A N/A N/A idmapdb add N/A dn cn objectClass objectSid type xidNumber N/A CN=%s N/A str sid N/A str sid sidMap N/A ndr_pack sid xid_type N/A str xid N/A N/A N/A N/A ldb LdbError N/A e N/A N/A N/A N/A logger warn Could not add idmap entry for sid=%s, id=%s, type=%s (%s) N/A str sid N/A str xid xid_type N/A str e N/A import_idmap N/A N/A idmapdb samba3 logger N/A N/A N/A Import idmap data.

    :param idmapdb: Samba4 IDMAP database
    :param samba3_idmap: Samba3 IDMAP database to import from
    :param logger: Logger object
     N/A N/A N/A samba3_idmap N/A N/A samba3 get_idmap_db N/A N/A N/A IOError N/A e N/A N/A N/A N/A logger warn Cannot open idmap database, Ignoring: %s N/A str e N/A N/A currentxid N/A max N/A N/A samba3_idmap get_user_hwm N/A N/A samba3_idmap get_group_hwm N/A lowerbound currentxid N/A m N/A N/A ldb Message N/A N/A m dn N/A N/A ldb Dn idmapdb CN=CONFIG N/A N/A m N/A lowerbound N/A N/A ldb MessageElement N/A str lowerbound N/A ldb FLAG_MOD_REPLACE lowerBound N/A N/A m N/A xidNumber N/A N/A ldb MessageElement N/A str currentxid N/A ldb FLAG_MOD_REPLACE xidNumber N/A N/A N/A idmapdb modify m N/A N/A id_type xid N/A N/A samba3_idmap ids N/A N/A N/A id_type UID N/A N/A xid_type ID_TYPE_UID N/A N/A N/A id_type GID N/A N/A xid_type ID_TYPE_GID N/A N/A N/A N/A logger warn Wrong type of entry in idmap (%s), Ignoring id_type N/A N/A sid N/A N/A samba3_idmap get_sid xid id_type N/A N/A add_idmap_entry idmapdb N/A dom_sid sid xid xid_type logger N/A add_group_from_mapping_entry N/A N/A samdb groupmap logger N/A N/A N/A Add or modify group from group mapping entry

    param samdb: Samba4 SAM database
    param groupmap: Groupmap entry
    param logger: Logger object
     N/A N/A N/A msg N/A N/A samdb search base N/A <SID=%s> N/A str N/A groupmap sid scope N/A ldb SCOPE_BASE N/A found True N/A N/A N/A N/A ldb LdbError N/A N/A ecode emsg N/A N/A N/A ecode N/A ldb ERR_NO_SUCH_OBJECT N/A N/A found False N/A N/A N/A N/A ldb LdbError ecode emsg N/A found N/A N/A N/A N/A logger warn Group already exists sid=%s, groupname=%s existing_groupname=%s, Ignoring. N/A str N/A groupmap sid N/A groupmap nt_name N/A N/A N/A msg N/A 0 N/A sAMAccountName N/A 0 N/A N/A N/A N/A groupmap sid_name_use N/A lsa SID_NAME_WKN_GRP N/A N/A N/A group_dom_sid rid N/A N/A N/A groupmap sid split N/A N/A group_dom_sid N/A N/A security dom_sid N/A security SID_BUILTIN N/A N/A N/A m N/A N/A ldb Message N/A N/A m dn N/A N/A ldb Dn samdb N/A CN=%s,CN=Users,%s N/A N/A groupmap nt_name N/A N/A samdb get_default_basedn N/A N/A m N/A cn N/A N/A ldb MessageElement N/A groupmap nt_name N/A ldb FLAG_MOD_ADD cn N/A N/A m N/A objectClass N/A N/A ldb MessageElement group N/A ldb FLAG_MOD_ADD objectClass N/A N/A m N/A objectSid N/A N/A ldb MessageElement N/A ndr_pack N/A groupmap sid N/A ldb FLAG_MOD_ADD objectSid N/A N/A m N/A sAMAccountName N/A N/A ldb MessageElement N/A groupmap nt_name N/A ldb FLAG_MOD_ADD sAMAccountName N/A N/A groupmap comment N/A N/A N/A m N/A description N/A N/A ldb MessageElement N/A groupmap comment N/A ldb FLAG_MOD_ADD description N/A N/A N/A N/A groupmap sid_name_use N/A lsa SID_NAME_ALIAS N/A N/A groupmap sid_name_use N/A lsa SID_NAME_WKN_GRP N/A N/A N/A m N/A groupType N/A N/A ldb MessageElement N/A str N/A dsdb GTYPE_SECURITY_DOMAIN_LOCAL_GROUP N/A ldb FLAG_MOD_ADD groupType N/A N/A N/A N/A N/A samdb add m controls N/A relax:0 N/A N/A N/A N/A ldb LdbError N/A e N/A N/A N/A N/A logger warn Could not add group name=%s (%s) N/A groupmap nt_name N/A str e N/A add_users_to_group N/A N/A samdb group members logger N/A N/A N/A Add user/member to group/alias

    param samdb: Samba4 SAM database
    param group: Groupmap object
    param members: List of member SIDs
    param logger: Logger object
     N/A member_sid members N/A N/A m N/A N/A ldb Message N/A N/A m dn N/A N/A ldb Dn samdb N/A <SID=%s> N/A str N/A group sid N/A N/A m N/A a01 N/A N/A ldb MessageElement N/A <SID=%s> N/A str member_sid N/A ldb FLAG_MOD_ADD member N/A N/A N/A N/A N/A samdb modify m N/A N/A N/A N/A ldb LdbError N/A N/A ecode emsg N/A N/A N/A ecode N/A ldb ERR_ENTRY_ALREADY_EXISTS N/A N/A N/A N/A logger debug skipped re-adding member '%s' to group '%s': %s member_sid N/A group sid emsg N/A N/A N/A ecode N/A ldb ERR_NO_SUCH_OBJECT N/A N/A N/A ProvisioningError N/A Could not add member '%s' to group '%s' as either group or user record doesn't exist: %s N/A member_sid N/A group sid emsg N/A N/A N/A ProvisioningError N/A Could not add member '%s' to group '%s': %s N/A member_sid N/A group sid emsg N/A import_wins N/A N/A samba4_winsdb samba3_winsdb N/A N/A N/A Import settings from a Samba3 WINS database.

    :param samba4_winsdb: WINS database to import to
    :param samba3_winsdb: WINS database to import from
     N/A version_id 0 N/A N/A name N/A ttl ips nb_flags N/A N/A samba3_winsdb items N/A N/A version_id 1 N/A type N/A int N/A N/A N/A name split # 1 N/A 1 16 N/A N/A type 28 N/A N/A rType 2 N/A N/A N/A type 128 N/A N/A N/A N/A len ips 1 N/A N/A rType 2 N/A N/A rType 1 N/A N/A N/A N/A len ips 1 N/A N/A rType 3 N/A N/A rType 0 N/A N/A ttl N/A N/A time time N/A N/A rState 0 N/A N/A rState 1 N/A nType N/A N/A nb_flags 96 5 N/A N/A N/A samba4_winsdb add N/A dn type name objectClass recordType recordState nodeType expireTime isStatic versionID address N/A name=%s,type=0x%s N/A tuple N/A N/A name split # N/A N/A N/A name split # N/A 1 N/A N/A N/A name split # N/A 0 winsRecord N/A str rType N/A str rState N/A str nType N/A N/A ldb timestring ttl 0 N/A str version_id ips N/A N/A N/A samba4_winsdb add N/A dn cn objectClass maxVersion cn=VERSION VERSION winsMaxVersion N/A str version_id N/A enable_samba3sam N/A N/A samdb ldapurl N/A N/A N/A Enable Samba 3 LDAP URL database.

    :param samdb: SAM Database.
    :param ldapurl: Samba 3 LDAP URL
     N/A N/A N/A samdb modify_ldif 
dn: @MODULES
changetype: modify
replace: @LIST
@LIST: samldb,operational,objectguid,rdn_name,samba3sam
 N/A N/A N/A samdb add N/A dn @MAP_URL @MAP=samba3sam ldapurl N/A N/A smbconf_keep N/A dos charset unix charset display charset comment path directory workgroup realm netbios name netbios aliases netbios scope server string interfaces bind interfaces only security auth methods encrypt passwords null passwords obey pam restrictions password server smb passwd file private dir passwd chat password level lanman auth ntlm auth client NTLMv2 auth client lanman auth client plaintext auth read only hosts allow hosts deny log level debuglevel log file smb ports large readwrite max protocol min protocol unicode read raw write raw disable netbios nt status support max mux max xmit name resolve order max wins ttl min wins ttl time server unix extensions use spnego server signing client signing max connections paranoid server security socket options strict sync max print jobs printable print ok printer name printer map system map hidden map archive preferred master prefered master local master browseable browsable wins server wins support csc policy strict locking preload auto services lock dir lock directory pid directory socket address copy include available volume fstype panic action msdfs root host msdfs winbind separator upgrade_smbconf N/A N/A oldconf mark N/A N/A N/A Remove configuration variables not present in Samba4

    :param oldconf: Old configuration structure
    :param mark: Whether removed configuration variables should be
        kept in the new configuration as "samba3:<name>"
     N/A data N/A N/A oldconf data N/A newconf N/A LoadParm N/A s data N/A N/A p N/A data N/A s N/A N/A keep False N/A k smbconf_keep N/A N/A N/A N/A smbconf_keep N/A k p N/A N/A keep True N/A N/A keep N/A N/A N/A N/A newconf set s p N/A N/A oldconf get s p N/A N/A mark N/A N/A N/A N/A newconf set s N/A samba3: p N/A N/A oldconf get s p N/A newconf N/A N/A SAMBA3_PREDEF_NAMES N/A HKLM N/A registry HKEY_LOCAL_MACHINE import_registry N/A N/A samba4_registry samba3_regdb N/A N/A N/A Import a Samba 3 registry database into the Samba 4 registry.

    :param samba4_registry: Samba 4 registry handle.
    :param samba3_regdb: Samba 3 registry database handle.
     ensure_key_exists N/A N/A keypath N/A N/A N/A N/A predef_name keypath N/A N/A keypath split / 1 N/A predef_id N/A SAMBA3_PREDEF_NAMES N/A predef_name N/A keypath N/A N/A keypath replace / \ N/A N/A N/A samba4_registry create_key predef_id keypath N/A N/A key N/A N/A samba3_regdb keys N/A N/A key_handle N/A ensure_key_exists key N/A subkey N/A N/A samba3_regdb subkeys key N/A N/A N/A ensure_key_exists subkey N/A N/A value_name N/A value_type value_data N/A N/A N/A N/A samba3_regdb values key items N/A N/A N/A N/A key_handle set_value value_name value_type value_data N/A get_posix_attr_from_ldap_backend N/A N/A logger ldb_object base_dn user attr N/A N/A N/A Get posix attributes from a samba3 ldap backend
    :param ldbs: a list of ldb connection objects
    :param base_dn: the base_dn of the connection
    :param user: the user to get the attribute for
    :param attr: the attribute to be retrieved
     N/A N/A N/A msg N/A N/A ldb_object search base_dn scope N/A ldb SCOPE_SUBTREE expression N/A (&(objectClass=posixAccount)(uid=%s)) user attrs N/A attr N/A N/A N/A N/A ldb LdbError N/A e N/A N/A N/A ProvisioningError Failed to retrieve attribute %s for user %s, the error is: %s attr user e N/A N/A N/A N/A msg count 1 N/A N/A N/A N/A N/A msg N/A 0 N/A attr N/A 0 N/A N/A N/A N/A logger warning LDAP entry for user %s contains more than one %s user attr N/A KeyError N/A upgrade_from_samba3 N/A N/A samba3 logger targetdir session_info useeadb dns_backend use_ntvfs N/A None False None False N/A N/A Upgrade from samba3 database to samba4 AD database

    :param samba3: samba3 object
    :param logger: Logger object
    :param targetdir: samba4 database directory
    :param session_info: Session information
     N/A serverrole N/A N/A N/A samba3 lp server_role N/A domainname N/A N/A N/A samba3 lp get workgroup N/A realm N/A N/A N/A samba3 lp get realm N/A netbiosname N/A N/A N/A samba3 lp get netbios name N/A N/A N/A N/A N/A samba3 lp get ldapsam:trusted None N/A N/A N/A N/A N/A samba3 lp set ldapsam:trusted yes N/A N/A N/A secrets_db N/A N/A samba3 get_secrets_db N/A N/A N/A IOError N/A e N/A N/A N/A ProvisioningError N/A Could not open '%s', the Samba3 secrets database: %s.  Perhaps you specified the incorrect smb.conf, --testparm or --dbdir option? N/A N/A N/A samba3 privatedir_path secrets.tdb N/A str e N/A N/A domainname N/A N/A domainname N/A N/A N/A secrets_db domains N/A 0 N/A N/A N/A logger warning No workgroup specified in smb.conf file, assuming '%s' domainname N/A N/A realm N/A N/A N/A N/A serverrole ROLE_DOMAIN_BDC N/A serverrole ROLE_DOMAIN_PDC N/A N/A N/A ProvisioningError No realm specified in smb.conf file and being a DC. That upgrade path doesn't work! Please add a 'realm' directive to your old smb.conf to let us know which one you want to use (it is the DNS name of the AD domain you wish to create. N/A N/A realm N/A N/A domainname upper N/A N/A N/A logger warning No realm specified in smb.conf file, assuming '%s' realm N/A next_rid 1000 N/A N/A N/A machinepass N/A N/A secrets_db get_machine_password netbiosname N/A N/A N/A KeyError N/A N/A machinepass None N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A samba3 lp get passdb backend split : N/A 0 strip ldapsam N/A N/A base_dn N/A N/A N/A samba3 lp get ldap suffix N/A ldapuser N/A N/A N/A samba3 lp get ldap admin dn N/A ldappass N/A N/A N/A N/A secrets_db get_ldap_bind_pw ldapuser strip N/A ldap True N/A N/A ldapuser None N/A ldappass None N/A ldap False N/A N/A N/A secrets_db close N/A N/A N/A passdb set_secrets_dir N/A N/A N/A samba3 lp get private dir N/A s3db N/A N/A samba3 get_sam_db N/A N/A N/A domainsid N/A N/A passdb get_global_sam_sid N/A N/A N/A N/A passdb error N/A N/A N/A Exception N/A Can't find domain sid for '%s', Exiting. domainname N/A N/A N/A machineacct N/A N/A s3db getsampwnam N/A %s$ netbiosname N/A N/A N/A N/A passdb error N/A N/A machinerid None N/A machinesid None N/A N/A N/A machinesid machinerid N/A N/A N/A machineacct user_sid split N/A N/A N/A logger info Exporting account policy N/A policy N/A N/A s3db get_account_policy N/A N/A N/A logger info Exporting groups N/A grouplist N/A N/A s3db enum_group_mapping N/A groupmembers N/A N/A group grouplist N/A N/A N/A sid rid N/A N/A N/A group sid split N/A N/A sid domainsid N/A N/A N/A rid next_rid N/A N/A next_rid N/A rid 1 N/A N/A N/A group sid_name_use N/A lsa SID_NAME_ALIAS N/A N/A N/A N/A members N/A N/A s3db enum_aliasmem N/A group sid N/A N/A groupmembers N/A N/A str N/A group sid members N/A N/A N/A N/A passdb error N/A e N/A N/A N/A N/A logger warn Ignoring group '%s' %s listed but then not found: %s N/A group nt_name N/A group sid e N/A N/A N/A N/A N/A group sid_name_use N/A lsa SID_NAME_DOM_GRP N/A N/A N/A N/A members N/A N/A s3db enum_group_members N/A group sid N/A N/A groupmembers N/A N/A str N/A group sid members N/A N/A N/A N/A passdb error N/A e N/A N/A N/A N/A logger warn Ignoring group '%s' %s listed but then not found: %s N/A group nt_name N/A group sid e N/A N/A N/A N/A N/A group sid_name_use N/A lsa SID_NAME_WKN_GRP N/A N/A N/A group_dom_sid rid N/A N/A N/A group sid split N/A N/A group_dom_sid N/A N/A security dom_sid N/A security SID_BUILTIN N/A N/A N/A N/A logger warn Ignoring 'well known' group '%s' (should already be in AD, and have no members) N/A group nt_name N/A N/A N/A N/A members N/A N/A s3db enum_aliasmem N/A group sid N/A N/A groupmembers N/A N/A str N/A group sid members N/A N/A N/A N/A passdb error N/A e N/A N/A N/A N/A logger warn Ignoring group '%s' %s listed but then not found: %s N/A group nt_name N/A group sid e N/A N/A N/A N/A N/A logger warn Ignoring group '%s' %s with sid_name_use=%d N/A group nt_name N/A group sid N/A group sid_name_use N/A N/A N/A N/A logger info Exporting users N/A userlist N/A N/A s3db search_users 0 N/A userdata N/A N/A uids N/A N/A admin_user None N/A entry userlist N/A N/A N/A machinerid N/A machinerid N/A entry N/A rid N/A N/A N/A username N/A entry N/A account_name N/A N/A N/A entry N/A rid 1000 N/A N/A N/A N/A logger info   Skipping wellknown rid=%d (for username=%s) N/A entry N/A rid username N/A N/A N/A N/A entry N/A rid next_rid N/A N/A next_rid N/A N/A entry N/A rid 1 N/A user N/A N/A s3db getsampwnam username N/A acct_type N/A N/A user acct_ctrl N/A N/A N/A N/A samr ACB_NORMAL N/A samr ACB_WSTRUST N/A samr ACB_SVRTRUST N/A samr ACB_DOMTRUST N/A N/A N/A acct_type N/A samr ACB_NORMAL N/A acct_type N/A samr ACB_WSTRUST N/A N/A N/A N/A N/A acct_type N/A samr ACB_SVRTRUST N/A N/A N/A N/A logger warn N/A   Demoting BDC account trust for %s, this DC must be elevated to an AD DC using 'samba-tool domain promote' N/A username N/A -1 N/A N/A user acct_ctrl N/A N/A N/A user acct_ctrl N/A N/A samr ACB_SVRTRUST N/A samr ACB_WSTRUST N/A N/A N/A acct_type N/A samr ACB_DOMTRUST N/A N/A N/A N/A logger warn N/A   Skipping inter-domain trust from domain %s, this trust must be re-created as an AD trust N/A username N/A -1 N/A N/A N/A N/A acct_type N/A N/A samr ACB_NORMAL N/A samr ACB_WSTRUST N/A N/A username N/A -1 $ N/A N/A N/A N/A logger warn N/A   Fixing account %s which had both ACB_NORMAL (U) and ACB_WSTRUST (W) set.  Account will be marked as ACB_WSTRUST (W), i.e. as a domain member username N/A N/A user acct_ctrl N/A N/A user acct_ctrl N/A N/A samr ACB_NORMAL N/A N/A N/A N/A acct_type N/A N/A samr ACB_NORMAL N/A samr ACB_SVRTRUST N/A N/A username N/A -1 $ N/A N/A N/A N/A logger warn N/A   Fixing account %s which had both ACB_NORMAL (U) and ACB_SVRTRUST (S) set.  Account will be marked as ACB_WSTRUST (S), i.e. as a domain member username N/A N/A user acct_ctrl N/A N/A user acct_ctrl N/A N/A samr ACB_NORMAL N/A N/A N/A ProvisioningError N/A Failed to upgrade due to invalid account %s, account control flags 0x%08X must have exactly one of
ACB_NORMAL (N, 0x%08X), ACB_WSTRUST (W 0x%08X), ACB_SVRTRUST (S 0x%08X) or ACB_DOMTRUST (D 0x%08X).

Please fix this account before attempting to upgrade again
 N/A N/A user acct_flags username N/A samr ACB_NORMAL N/A samr ACB_WSTRUST N/A samr ACB_SVRTRUST N/A samr ACB_DOMTRUST N/A N/A userdata N/A username user N/A N/A N/A N/A uids N/A username N/A N/A N/A s3db sid_to_id N/A user user_sid N/A 0 N/A N/A N/A N/A passdb error N/A N/A N/A N/A N/A uids N/A username N/A N/A N/A pwd getpwnam username pw_uid N/A N/A N/A KeyError N/A N/A N/A N/A N/A admin_user N/A N/A N/A username lower root N/A N/A admin_user username N/A N/A N/A N/A username lower administrator N/A N/A admin_user username N/A N/A N/A group_memberships N/A N/A s3db enum_group_memberships user N/A group group_memberships N/A N/A N/A N/A str group groupmembers N/A N/A N/A N/A user user_sid N/A groupmembers N/A N/A str group N/A N/A N/A N/A N/A groupmembers N/A N/A str group append N/A user user_sid N/A N/A N/A groupmembers N/A N/A str group N/A N/A user user_sid N/A N/A N/A N/A passdb error N/A e N/A N/A N/A N/A logger warn Ignoring group memberships of '%s' %s: %s username N/A user user_sid e N/A N/A N/A logger info Next rid = %d next_rid N/A group_names N/A set N/A N/A g nt_name N/A g grouplist N/A user_names N/A set N/A N/A u N/A account_name N/A u userlist N/A common_names N/A N/A group_names intersection user_names N/A common_names N/A N/A N/A N/A logger error Following names are both user names and group names: N/A name common_names N/A N/A N/A N/A logger error N/A    %s name N/A N/A ProvisioningError Please remove common user/group names before upgrade. N/A group_sids N/A set N/A N/A str N/A g sid N/A g grouplist N/A N/A N/A len grouplist N/A len group_sids N/A N/A N/A ProvisioningError Please remove duplicate group sid entries before upgrade. N/A user_sids N/A set N/A N/A %s-%u N/A domainsid N/A u N/A rid N/A u userlist N/A N/A N/A len userlist N/A len user_sids N/A N/A N/A ProvisioningError Please remove duplicate user sid entries before upgrade. N/A common_sids N/A N/A group_sids intersection user_sids N/A common_sids N/A N/A N/A N/A logger error Following sids are both user and group sids: N/A sid common_sids N/A N/A N/A N/A logger error N/A    %s N/A str sid N/A N/A ProvisioningError Please remove duplicate sid entries before upgrade. N/A homes N/A N/A shells N/A N/A pgids N/A N/A ldap N/A N/A creds N/A Credentials N/A N/A N/A creds guess N/A samba3 lp N/A N/A N/A creds set_bind_dn ldapuser N/A N/A N/A creds set_password ldappass N/A urls N/A N/A N/A N/A N/A N/A N/A N/A samba3 lp get passdb backend split : 1 N/A 1 strip " N/A url N/A N/A urls split N/A N/A N/A N/A ldb_object N/A Ldb url credentials creds N/A N/A N/A N/A ldb LdbError N/A e N/A N/A N/A N/A logger warning Could not open ldb connection to %s, the error message is: %s url e N/A N/A N/A N/A N/A logger info Exporting posix attributes N/A userlist N/A N/A s3db search_users 0 N/A entry userlist N/A N/A username N/A entry N/A account_name N/A N/A username N/A N/A uids keys N/A N/A N/A N/A ldap N/A N/A N/A homes N/A username N/A get_posix_attr_from_ldap_backend logger ldb_object base_dn username homeDirectory N/A N/A N/A homes N/A username N/A N/A N/A pwd getpwnam username pw_dir N/A N/A N/A KeyError N/A N/A N/A N/A N/A ldap N/A N/A N/A shells N/A username N/A get_posix_attr_from_ldap_backend logger ldb_object base_dn username loginShell N/A N/A N/A shells N/A username N/A N/A N/A pwd getpwnam username pw_shell N/A N/A N/A KeyError N/A N/A N/A N/A N/A ldap N/A N/A N/A pgids N/A username N/A get_posix_attr_from_ldap_backend logger ldb_object base_dn username gidNumber N/A N/A N/A pgids N/A username N/A N/A N/A pwd getpwnam username pw_gid N/A N/A N/A KeyError N/A N/A N/A N/A N/A logger info Reading WINS database N/A samba3_winsdb None N/A N/A N/A samba3_winsdb N/A N/A samba3 get_wins_db N/A N/A N/A IOError N/A e N/A N/A N/A N/A logger warn Cannot open wins database, Ignoring: %s N/A str e N/A N/A N/A N/A serverrole ROLE_DOMAIN_BDC N/A serverrole ROLE_DOMAIN_PDC N/A N/A dns_backend NONE N/A result N/A provision logger session_info None targetdir targetdir realm realm domain domainname domainsid N/A str domainsid next_rid next_rid dc_rid machinerid dom_for_fun_level N/A dsdb DS_DOMAIN_FUNCTION_2003 hostname N/A N/A netbiosname lower machinepass machinepass serverrole serverrole samdb_fill FILL_FULL useeadb useeadb dns_backend dns_backend use_rfc2307 True use_ntvfs use_ntvfs skip_sysvolacl True N/A N/A N/A result report_logger logger N/A N/A N/A logger info Importing WINS database N/A samba3_winsdb N/A N/A N/A import_wins N/A Ldb N/A N/A result paths winsdb samba3_winsdb N/A N/A N/A logger info Importing Account policy N/A N/A import_sam_policy N/A result samdb policy logger N/A N/A N/A logger info Importing idmap database N/A N/A import_idmap N/A result idmap samba3 logger N/A new_lp_ctx N/A N/A s3param get_context N/A N/A N/A new_lp_ctx load N/A N/A result lp configfile N/A N/A N/A new_lp_ctx set private dir N/A N/A N/A result lp get private dir N/A N/A N/A new_lp_ctx set state directory N/A N/A N/A result lp get state directory N/A N/A N/A new_lp_ctx set lock directory N/A N/A N/A result lp get lock directory N/A s4_passdb N/A N/A passdb PDB N/A N/A new_lp_ctx get passdb backend N/A N/A N/A logger info Importing groups N/A g grouplist N/A N/A N/A N/A g gid -1 N/A N/A N/A add_group_from_mapping_entry N/A result samdb g logger N/A N/A add_ad_posix_idmap_entry N/A result samdb N/A g sid N/A g gid ID_TYPE_GID logger N/A N/A add_posix_attrs samdb N/A result samdb sid N/A g sid name N/A g nt_name nisdomain N/A N/A domainname lower xid_type ID_TYPE_GID logger logger N/A N/A N/A logger info Importing users N/A username userdata N/A N/A N/A N/A N/A username lower administrator N/A N/A N/A N/A N/A userdata N/A username user_sid N/A dom_sid N/A N/A str domainsid -500 N/A N/A N/A N/A logger error N/A User 'Administrator' in your existing directory has SID %s, expected it to be %s N/A N/A N/A userdata N/A username user_sid N/A dom_sid N/A N/A str domainsid -500 N/A N/A ProvisioningError User 'Administrator' in your existing directory does not have SID ending in -500 N/A N/A N/A N/A username lower root N/A N/A N/A N/A N/A userdata N/A username user_sid N/A dom_sid N/A N/A str domainsid -500 N/A N/A N/A N/A logger warn User root has been replaced by Administrator N/A N/A N/A N/A logger warn User root has been kept in the directory, it should be removed in favour of the Administrator user N/A N/A N/A s4_passdb add_sam_account N/A userdata N/A username N/A N/A username uids N/A N/A N/A add_ad_posix_idmap_entry N/A result samdb N/A N/A userdata N/A username user_sid N/A uids N/A username ID_TYPE_UID logger N/A N/A N/A username homes N/A N/A homes N/A username None N/A username shells N/A N/A shells N/A username None N/A username pgids N/A N/A pgids N/A username None N/A N/A N/A add_posix_attrs samdb N/A result samdb sid N/A N/A userdata N/A username user_sid name username nisdomain N/A N/A domainname lower xid_type ID_TYPE_UID home N/A homes N/A username shell N/A shells N/A username pgid N/A pgids N/A username logger logger N/A N/A N/A logger info Adding users to groups N/A g grouplist N/A N/A N/A N/A str N/A g sid groupmembers N/A N/A N/A add_users_to_group N/A result samdb g N/A groupmembers N/A N/A str N/A g sid logger N/A admin_user N/A N/A N/A N/A logger info Setting password for administrator N/A admin_userdata N/A N/A s4_passdb getsampwnam administrator N/A N/A admin_userdata nt_passwd N/A N/A userdata N/A admin_user nt_passwd N/A N/A N/A userdata N/A admin_user lanman_passwd N/A N/A N/A admin_userdata lanman_passwd N/A N/A userdata N/A admin_user lanman_passwd N/A N/A admin_userdata pass_last_set_time N/A N/A userdata N/A admin_user pass_last_set_time N/A N/A N/A userdata N/A admin_user pw_history N/A N/A N/A admin_userdata pw_history N/A N/A userdata N/A admin_user pw_history N/A N/A N/A s4_passdb update_sam_account admin_userdata N/A N/A N/A logger info Administrator password has been set to password of user '%s' admin_user N/A N/A N/A result server_role active directory domain controller N/A N/A N/A setsysvolacl N/A result samdb N/A N/A result paths netlogon N/A N/A result paths sysvol N/A N/A result paths root_uid N/A N/A result paths root_gid N/A N/A security dom_sid N/A result domainsid N/A N/A result names dnsdomain N/A N/A result names domaindn N/A result lp use_ntvfs N/A