# Acl not working!

**URL:** <https://discuss.dgraph.io/t/acl-not-working/5863>\
**Category:** Dgraph\
**Created:** [January 20, 2020, 11:59am UTC](https://discuss.dgraph.io/t/acl-not-working/5863 "2020-01-20T11:59:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsalwan98](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@rsalwan98](https://discuss.dgraph.io/u/rsalwan98)\
**Post date:** [January 20, 2020, 11:59am UTC](https://discuss.dgraph.io/t/acl-not-working/5863/1 "2020-01-20T11:59:42Z")

</div>

curl -X POST localhost:8080/login -d ‘{  
“userid”: “groot”,  
“password”: “password”  
}’

this command not working in terminal  
it gives error  
{“errors”:[{“message”:“Authentication from address 172.17.0.1:52436 failed: while querying user with id groot: : Attribute dgraph.xid is not indexed.”,“extensions”:{“code”:“ErrorInvalidRequest”}}],“data”:null}

how to solve this? Do i need a dgraph contract for working with ACL.??

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [January 20, 2020, 4:03pm UTC](https://discuss.dgraph.io/t/acl-not-working/5863/2 "2020-01-20T16:03:22Z")

</div>

This is being discussed at [https://dgraph.slack.com/archives/C13LH03RR/p1579523647054200](https://dgraph.slack.com/archives/C13LH03RR/p1579523647054200)

---

<div class="post-metadata">

**Author:** ![rsalwan98](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@rsalwan98](https://discuss.dgraph.io/u/rsalwan98)\
**Post date:** [January 20, 2020, 5:36pm UTC](https://discuss.dgraph.io/t/acl-not-working/5863/3 "2020-01-20T17:36:40Z")

</div>

dgraph alpha --my=localhost:7080 --lru\_mb=1024 --zero=localhost:5080 --logtostderr -v=3 --acl\_secret\_file ./hmac-secret

not able to run this command?  
It is giving me the following error!  
where should be my hmac-secret file?
